FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-16 17:17:29 +02:00
parent bab68b179b
commit 46abe5bea0

View File

@ -58,7 +58,7 @@ $year_current = $year_start;
$action = GETPOST('action', 'aZ09');
// Security check
if (empty($conf->accounting->enabled)) {
if (!isModEnabled('accounting')) {
accessforbidden();
}
if ($user->socid > 0) {