2
0
forked from Wavyzz/dolibarr

fix #27883 : zero could be a value stored

This commit is contained in:
Eric Seigne
2024-01-30 21:42:57 +01:00
parent 2f18dc1b9c
commit 1f21e1a945

View File

@@ -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);
}
/**