FIX php8 compatibility

This commit is contained in:
Philippe GRAND
2022-08-16 17:20:38 +02:00
parent b6170450d0
commit f94e2b3fe9

View File

@@ -63,7 +63,7 @@ $hookmanager->initHooks(array('sellsjournal'));
$parameters = array();
// Security check
if (empty($conf->accounting->enabled)) {
if (!isModEnabled('accounting')) {
accessforbidden();
}
if ($user->socid > 0) {