Merge pull request #27089 from defrance/patch-302

php V8 warning
This commit is contained in:
Laurent Destailleur 2023-12-27 16:02:24 +01:00 committed by GitHub
commit aecb32ed97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -480,7 +480,7 @@ if (($action == 'searchfiles' || $action == 'dl')) {
*ZIP creation
*/
$dirfortmpfile = ($conf->accounting->dir_temp ? $conf->accounting->dir_temp : $conf->comptabilite->dir_temp);
$dirfortmpfile = (!empty($conf->accounting->dir_temp) ? $conf->accounting->dir_temp : $conf->comptabilite->dir_temp);
if (empty($dirfortmpfile)) {
setEventMessages($langs->trans("ErrorNoAccountingModuleEnabled"), null, 'errors');
$error++;