scrutinizer in accountancy/class/accountingaccount.class.php: variable not always defined
This commit is contained in:
parent
5451bef0f7
commit
349e33592d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user