FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-16 17:22:13 +02:00
parent b2c0dae216
commit 653ce52713

View File

@ -89,7 +89,7 @@ if (!$sortorder) {
$formaccounting = new FormAccounting($db);
// Security check
if (empty($conf->accounting->enabled)) {
if (!isModEnabled('accounting')) {
accessforbidden();
}
if ($user->socid > 0) {