FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-16 17:09:40 +02:00
parent 44e8c99b82
commit 919408f9d1

View File

@ -79,7 +79,7 @@ if (!empty($update)) {
$object = new BookKeeping($db);
// Security check
if (empty($conf->accounting->enabled)) {
if (!isModEnabled('accounting')) {
accessforbidden();
}
if ($user->socid > 0) {