FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-16 17:19:30 +02:00
parent a8a5ed00ec
commit aea9cc7f93

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) {