FIX avoid error if $object->fk_account =< 0 for getNomUrl
This commit is contained in:
parent
9447e66da1
commit
bcc83408e0
@ -233,9 +233,10 @@ $disable_delete = 0;
|
||||
// Bank account
|
||||
if (! empty($conf->banque->enabled))
|
||||
{
|
||||
$bankline=new AccountLine($db);
|
||||
|
||||
if ($object->fk_account > 0)
|
||||
{
|
||||
$bankline=new AccountLine($db);
|
||||
$bankline->fetch($object->bank_line);
|
||||
if ($bankline->rappro)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user