Better test

This commit is contained in:
Laurent Destailleur 2020-08-17 04:34:03 +02:00
parent fab78de569
commit 5987504fa5

View File

@ -96,7 +96,7 @@ function length_accountg($account)
if ($account < 0 || is_empty($account)) return '';
if (is_empty($conf->global->ACCOUNTING_MANAGE_ZERO)) return $account;
if (!empty($conf->global->ACCOUNTING_MANAGE_ZERO)) return $account;
$g = $conf->global->ACCOUNTING_LENGTH_GACCOUNT;
if (!is_empty($g)) {
@ -131,7 +131,7 @@ function length_accounta($accounta)
if ($accounta < 0 || is_empty($accounta)) return '';
if (is_empty($conf->global->ACCOUNTING_MANAGE_ZERO)) return $accounta;
if (!empty($conf->global->ACCOUNTING_MANAGE_ZERO)) return $accounta;
$a = $conf->global->ACCOUNTING_LENGTH_AACCOUNT;
if (!is_empty($a)) {