FIX php8 compatibility

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

View File

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