From ee193d766a455015eb708712adf6687db2d9cbef Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Tue, 16 Aug 2022 17:13:43 +0200 Subject: [PATCH] FIX php8 compatibility --- htdocs/accountancy/customer/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/customer/card.php b/htdocs/accountancy/customer/card.php index 296d6729301..0b3435ecb92 100644 --- a/htdocs/accountancy/customer/card.php +++ b/htdocs/accountancy/customer/card.php @@ -38,7 +38,7 @@ $codeventil = GETPOST('codeventil', 'int'); $id = GETPOST('id', 'int'); // Security check -if (empty($conf->accounting->enabled)) { +if (!isModEnabled('accounting')) { accessforbidden(); } if ($user->socid > 0) {