From 92ba7e34106aa10b90545a1b7c8ee83e684356a0 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Wed, 17 Aug 2022 22:34:08 +0200 Subject: [PATCH] FIX php8 compatibility --- htdocs/accountancy/customer/lines.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/customer/lines.php b/htdocs/accountancy/customer/lines.php index 4a8080ab8b4..469f29ad3c7 100644 --- a/htdocs/accountancy/customer/lines.php +++ b/htdocs/accountancy/customer/lines.php @@ -85,7 +85,7 @@ if (!$sortorder) { } // Security check -if (empty($conf->accounting->enabled)) { +if (!isModEnabled('accounting')) { accessforbidden(); } if ($user->socid > 0) {