FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-16 17:08:42 +02:00
parent ea8f70c73a
commit 44e8c99b82

View File

@ -142,7 +142,7 @@ if (!empty($search_ledger_code)) {
}
}
if (empty($conf->accounting->enabled)) {
if (!isModEnabled('accounting')) {
accessforbidden();
}
if ($user->socid > 0) {