Fix repair script

This commit is contained in:
Laurent Destailleur (aka Eldy) 2025-01-23 21:08:45 +01:00
parent 78e0eeb557
commit 8967d995a8

View File

@ -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 '<tr><td>Found line with id '.$obj->rowid.', entity '.$obj->entity.', file "'.$filetocheck.'" to delete';