From 2d2d41b7d822b16dda8ba40fdd22ec2d9dd22f0d Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Wed, 17 Aug 2022 22:35:05 +0200 Subject: [PATCH] FIX php8 compatibility --- htdocs/accountancy/expensereport/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/expensereport/card.php b/htdocs/accountancy/expensereport/card.php index 7c2310ccce4..0255e019138 100644 --- a/htdocs/accountancy/expensereport/card.php +++ b/htdocs/accountancy/expensereport/card.php @@ -42,7 +42,7 @@ $codeventil = GETPOST('codeventil', 'int'); $id = GETPOST('id', 'int'); // Security check -if (empty($conf->accounting->enabled)) { +if (!isModEnabled('accounting')) { accessforbidden(); } if ($user->socid > 0) {