FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-17 22:35:32 +02:00
parent 2d2d41b7d8
commit 693ceb714e

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) {