Update accounting.lib.php

This commit is contained in:
Alexandre SPANGARO 2021-10-18 10:19:50 +02:00
parent 9685695577
commit 053740792f

View File

@ -103,7 +103,7 @@ function length_accountg($account)
return $account;
}
$g = $conf->global->ACCOUNTING_LENGTH_GACCOUNT;
$g = !empty($conf->global->ACCOUNTING_LENGTH_GACCOUNT);
if (!is_empty($g)) {
// Clean parameters
$i = strlen($account);
@ -142,7 +142,7 @@ function length_accounta($accounta)
return $accounta;
}
$a = $conf->global->ACCOUNTING_LENGTH_AACCOUNT;
$a = !empty($conf->global->ACCOUNTING_LENGTH_AACCOUNT);
if (!is_empty($a)) {
// Clean parameters
$i = strlen($accounta);