forked from Wavyzz/dolibarr
fix #27883 : zero could be a value stored
This commit is contained in:
@@ -51,7 +51,7 @@ function getDolGlobalString($key)
|
||||
{
|
||||
global $conf;
|
||||
// return $conf->global->$key ?? '';
|
||||
return (string) (empty($conf->global->$key) ? '' : $conf->global->$key);
|
||||
return (string) (isset($conf->global->$key) ? $conf->global->$key : '');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,7 +63,7 @@ function getDolGlobalInt($key)
|
||||
{
|
||||
global $conf;
|
||||
// return $conf->global->$key ?? 0;
|
||||
return (int) (empty($conf->global->$key) ? 0 : $conf->global->$key);
|
||||
return (int) (isset($conf->global->$key) ? $conf->global->$key : 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user