From c9c5204923f6a7ca73d2133db6c788d8ef6bb3d1 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Thu, 11 Aug 2022 09:39:29 +0200 Subject: [PATCH] update code for PHP8 compliance --- htdocs/accountancy/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/accountancy/index.php b/htdocs/accountancy/index.php index bd48c205dae..3bbdd82fe59 100644 --- a/htdocs/accountancy/index.php +++ b/htdocs/accountancy/index.php @@ -111,13 +111,13 @@ if (!empty($conf->global->INVOICE_USE_SITUATION) && $conf->global->INVOICE_USE_S '; } - + print load_fiche_titre($langs->trans("AccountancyArea"), $resultboxes['selectboxlist'], 'accountancy', 0, '', '', $showtutorial); print '
'; // hideobject is to start hidden print "
\n"; print ''.$langs->trans("AccountancyAreaDescIntro")."
\n"; - if (!empty($user->rights->accounting->chartofaccount)) { + if ($user->hasRight('accounting', 'chartofaccount')) { print "
\n"; print "
\n"; print load_fiche_titre(' '.$langs->trans("AccountancyAreaDescActionOnce"), '', '')."\n";