FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-16 17:11:21 +02:00
parent fc440f90a0
commit f3ee3319dd

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) {