scrutinizer in accountancy/class/accountingaccount.class.php: variable not always defined

This commit is contained in:
Faustin 2022-09-10 14:09:58 +02:00
parent 5451bef0f7
commit 349e33592d

View File

@ -875,7 +875,7 @@ class AccountingAccount extends CommonObject
} elseif ($type == 'supplier') { } elseif ($type == 'supplier') {
$result = $accountdeposittoventilated->fetch('', $conf->global->ACCOUNTING_ACCOUNT_SUPPLIER_DEPOSIT, 1); $result = $accountdeposittoventilated->fetch('', $conf->global->ACCOUNTING_ACCOUNT_SUPPLIER_DEPOSIT, 1);
} }
if ($result < 0) { if (isset($result) && $result < 0) {
return -1; return -1;
} }