Merge pull request #8851 from atm-florian/develop
fix : avoid Notice: Undefined property: stdClass::$MAIN_FEATURES_LEVEL on upgrade.php page where global is not yet defined
This commit is contained in:
commit
22b1f2574e
@ -577,7 +577,7 @@ class Translate
|
||||
//$newstr=$this->getLabelFromKey($db,$reg[1],'c_ordersource','code','label');
|
||||
}
|
||||
|
||||
if ($conf->global->MAIN_FEATURES_LEVEL >= 2) dol_syslog(__METHOD__." missing translation for key '".$newstr."' in ".$_SERVER["PHP_SELF"], LOG_DEBUG);
|
||||
if (! empty($conf->global->MAIN_FEATURES_LEVEL) && $conf->global->MAIN_FEATURES_LEVEL >= 2) dol_syslog(__METHOD__." missing translation for key '".$newstr."' in ".$_SERVER["PHP_SELF"], LOG_DEBUG);
|
||||
|
||||
return $newstr;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user