Skip to content

Commit

Permalink
Update list.php
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Oct 12, 2019
1 parent bcc41c2 commit cef9354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/compta/bank/list.php
Expand Up @@ -454,7 +454,7 @@
if (! empty($arrayfields['b.account_number']['checked']))
{
print '<td>';
if (! empty($conf->accounting->enabled))
if (! empty($conf->accounting->enabled) && ! empty($objecttmp->account_number))
{
$accountingaccount = new AccountingAccount($db);
$accountingaccount->fetch('', $objecttmp->account_number, 1);
Expand All @@ -472,7 +472,7 @@
if (! empty($arrayfields['b.fk_accountancy_journal']['checked']))
{
print '<td>';
if (! empty($conf->accounting->enabled))
if (! empty($conf->accounting->enabled) && ! empty($objecttmp->fk_accountancy_journal))
{
$accountingjournal = new AccountingJournal($db);
$accountingjournal->fetch($objecttmp->fk_accountancy_journal);
Expand Down

0 comments on commit cef9354

Please sign in to comment.