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'); $action = GETPOST('action', 'aZ09');
// Security check // Security check
if (empty($conf->accounting->enabled)) { if (!isModEnabled('accounting')) {
accessforbidden(); accessforbidden();
} }
if ($user->socid > 0) { if ($user->socid > 0) {