FIX avoid error if $object->fk_account =< 0 for getNomUrl

This commit is contained in:
Regis Houssin 2018-11-14 18:10:41 +01:00
parent 9447e66da1
commit bcc83408e0

View File

@ -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)
{