Remove code using not defined var

This commit is contained in:
Laurent Destailleur 2017-12-08 12:54:08 +01:00 committed by GitHub
parent bfc476a118
commit 08abb1490a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4018,11 +4018,11 @@ class Product extends CommonObject
$filearray=dol_dir_list($dir,"files",0,'','(\.meta|_preview.*\.png)$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1);
if (! empty($conf->global->PRODUCT_USE_OLD_PATH_FOR_PHOTO)) // For backward compatiblity, we scan also old dirs
/*if (! empty($conf->global->PRODUCT_USE_OLD_PATH_FOR_PHOTO)) // For backward compatiblity, we scan also old dirs
{
$filearrayold=dol_dir_list($dirold,"files",0,'','(\.meta|_preview.*\.png)$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1);
$filearray=array_merge($filearray, $filearrayold);
}
}*/
$filearrayindatabase = dol_dir_list_in_database($relativedir, '', null, 'name', SORT_ASC);