diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index 37533ed67e8..5a2cbbda924 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -2107,27 +2107,30 @@ else
}
// Ship
- if ($commande->statut > 0 && $commande->statut < 3 && $commande->getNbOfProductsLines() > 0)
+ if ($conf->expedition->enabled)
{
- if ($user->rights->expedition->creer)
+ if ($commande->statut > 0 && $commande->statut < 3 && $commande->getNbOfProductsLines() > 0)
{
- // Chargement des permissions
- $error = $user->load_entrepots();
- if (sizeof($user->entrepots) === 1)
+ if ($user->rights->expedition->creer)
{
- print 'entrepots[0]['id'].'">';
- print $langs->trans('ShipProduct').'';
+ // Chargement des permissions
+ $error = $user->load_entrepots();
+ if (sizeof($user->entrepots) === 1)
+ {
+ print 'entrepots[0]['id'].'">';
+ print $langs->trans('ShipProduct').'';
+ }
+ else
+ {
+ print ''.$langs->trans('ShipProduct').'';
+ }
}
else
{
- print ''.$langs->trans('ShipProduct').'';
+ print ''.$langs->trans('ShipProduct').'';
}
}
- else
- {
- print ''.$langs->trans('ShipProduct').'';
- }
}
// Close