FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-17 22:23:19 +02:00
parent 395f7e63ac
commit 83753f7f88

View File

@ -187,7 +187,7 @@ if ($search_date_end && empty($search_date_endyear)) {
$search_date_endday = $tmparray['mday'];
}
if (empty($conf->accounting->enabled)) {
if (!isModEnabled('accounting')) {
accessforbidden();
}
if ($user->socid > 0) {