Use isModEnabled

This commit is contained in:
Alexandre SPANGARO
2022-09-25 06:13:22 +02:00
parent bcd5043eb2
commit 5eaffd64e7
5 changed files with 6 additions and 6 deletions

View File

@@ -8614,7 +8614,7 @@ class Form
}
} elseif ($objecttype == 'ficheinter') {
$tplpath = 'fichinter';
if (empty($conf->ficheinter->enabled)) {
if (!isModEnabled('ficheinter')) {
continue; // Do not show if module disabled
}
} elseif ($objecttype == 'invoice_supplier') {