FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-17 22:38:51 +02:00
parent ff4967695b
commit dc1ece2c14

View File

@ -83,7 +83,7 @@ if (!is_array($journal_data)) {
} }
// Security check // Security check
if (empty($conf->accounting->enabled)) { if (!isModEnabled('accounting')) {
accessforbidden(); accessforbidden();
} }
if ($user->socid > 0) { if ($user->socid > 0) {