FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-17 22:22:18 +02:00
parent 9089ccc308
commit c35bcaffb8

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