Merge pull request #10017 from hregis/8.0_bug

FIX avoid error if $object->fk_account =< 0 for getNomUrl
This commit is contained in:
Laurent Destailleur 2018-11-15 16:43:00 +01:00 committed by GitHub
commit d20bb41cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,9 +231,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)
{