FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-17 22:37:35 +02:00
parent 5a85a70139
commit 476b383a07

View File

@ -58,7 +58,7 @@ if ($in_bookkeeping == '') {
$now = dol_now();
// Security check
if (empty($conf->accounting->enabled)) {
if (!isModEnabled('accounting')) {
accessforbidden();
}
if ($user->socid > 0) {