mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix repair script
This commit is contained in:
parent
78e0eeb557
commit
8967d995a8
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user