Fix warning with rector

This commit is contained in:
Laurent Destailleur
2023-12-13 15:20:53 +01:00
167 changed files with 226 additions and 226 deletions

View File

@@ -2097,7 +2097,7 @@ class Setup extends DolibarrApi
$constvalue = (empty($constvalue) ? '0' : $constvalue);
// Value found
$value = '';
if ($constname && $conf->global->$constname != '') {
if ($constname && getDolGlobalString($constname) != '') {
$value = $conf->global->$constname;
}
$valueforchecksum = (empty($value) ? '0' : $value);