FIX php8 compatibility
This commit is contained in:
parent
476b383a07
commit
6cbcbad6ee
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user