From 8967d995a864a2a6f912fbd0173d1daa5f2ac5c0 Mon Sep 17 00:00:00 2001 From: "Laurent Destailleur (aka Eldy)" Date: Thu, 23 Jan 2025 21:08:45 +0100 Subject: [PATCH] Fix repair script --- htdocs/install/repair.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/install/repair.php b/htdocs/install/repair.php index 4a0a1b8501b..20498bc6c9e 100644 --- a/htdocs/install/repair.php +++ b/htdocs/install/repair.php @@ -1318,7 +1318,7 @@ if ($ok && GETPOST('clean_ecm_files_table', 'alpha')) { if ($obj->rowid > 0) { $filetocheck = DOL_DATA_ROOT.'/'.$obj->filepath.'/'.$obj->filename; $nbfile++; - if (!dol_is_file($filetocheck)) { + if (!dol_is_file($filetocheck) && !dol_is_file($filetocheck.'.noexe')) { $nbfiletodelete++; if ($nbfiletodelete <= $MAXTODELETE) { print 'Found line with id '.$obj->rowid.', entity '.$obj->entity.', file "'.$filetocheck.'" to delete';