fix warning

This commit is contained in:
Frédéric FRANCE 2021-10-23 21:10:43 +02:00
parent 08e5b55d16
commit 635cb34606
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1
2 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ $search_onpurchase = GETPOST('search_onpurchase', 'alpha');
$accounting_product_mode = GETPOST('accounting_product_mode', 'alpha');
$btn_changeaccount = GETPOST('changeaccount', 'alpha');
$btn_changetype = GETPOST('changetype', 'alpha');
$optioncss = GETPOST('optioncss', 'alpha');
if (empty($accounting_product_mode)) {
$accounting_product_mode = 'ACCOUNTANCY_SELL';

View File

@ -50,7 +50,7 @@ include_once DOL_DOCUMENT_ROOT.'/core/lib/json.lib.php';
function getDolGlobalString($key, $default = '')
{
global $conf;
// return $conf->global->$key ?? '';
// return $conf->global->$key ?? $default;
return (string) (empty($conf->global->$key) ? $default : $conf->global->$key);
}