FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-16 17:21:18 +02:00
parent f94e2b3fe9
commit 8bdff211c4

View File

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