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
if (empty($conf->accounting->enabled)) {
if (!isModEnabled('accounting')) {
accessforbidden();
}
if ($user->socid > 0) {