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

@@ -2827,7 +2827,7 @@ if ($action == 'create' && $usercancreate) {
}
// Create intervention
if (!empty($conf->ficheinter->enabled)) {
if (isModEnabled('ficheinter')) {
$langs->load("interventions");
if ($object->statut > Commande::STATUS_DRAFT && $object->statut < Commande::STATUS_CLOSED && $object->getNbOfServicesLines() > 0) {