FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-17 22:31:48 +02:00
parent e54f535351
commit da1c41f0d1

View File

@ -57,7 +57,7 @@ $search_date_end = dol_get_last_day($year_end, $month_end);
$year_current = $year_start;
// Security check
if (empty($conf->accounting->enabled)) {
if (!isModEnabled('accounting')) {
accessforbidden();
}
if ($user->socid > 0) {