From ec156ddf84b41bccb30ab02c27439fbcb6f1ffba Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Fri, 25 Nov 2022 11:26:31 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/accountancy/bookkeeping/balance.php | 16 ++++++++-------- htdocs/accountancy/bookkeeping/list.php | 2 +- htdocs/accountancy/bookkeeping/listbyaccount.php | 2 +- .../accountancy/bookkeeping/listbysubaccount.php | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/htdocs/accountancy/bookkeeping/balance.php b/htdocs/accountancy/bookkeeping/balance.php index 15b435d45c8..955e334fcff 100644 --- a/htdocs/accountancy/bookkeeping/balance.php +++ b/htdocs/accountancy/bookkeeping/balance.php @@ -235,17 +235,17 @@ if ($action != 'export_csv') { print ''; print ''; - - $parameters = array(); - $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been modified by hook - if ($reshook < 0) { - setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); - } + $parameters = array(); + $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been modified by hook - $button = empty($hookmanager->resPrint) ? '' : $hookmanager->resPrint; + if ($reshook < 0) { + setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); + } - if (empty($reshook)) { + $button = empty($hookmanager->resPrint) ? '' : $hookmanager->resPrint; + + if (empty($reshook)) { $button .= 'global->ACCOUNTING_EXPORT_FORMAT.')" />'; print '