use isModEnabled

This commit is contained in:
Frédéric France
2022-08-23 20:01:34 +02:00
parent 83ace0cb12
commit 4bef0f5745
174 changed files with 450 additions and 450 deletions

View File

@@ -3710,7 +3710,7 @@ class Commande extends CommonOrder
$result = '';
if (!empty($conf->expedition->enabled) && ($option == '1' || $option == '2')) {
if (isModEnabled("expedition") && ($option == '1' || $option == '2')) {
$url = DOL_URL_ROOT.'/expedition/shipment.php?id='.$this->id;
} else {
$url = DOL_URL_ROOT.'/commande/card.php?id='.$this->id;