FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-16 17:13:02 +02:00
parent 7e9547c762
commit bf013aad63

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