diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php
index b3b889f7822..2e15e926ce4 100644
--- a/htdocs/expedition/card.php
+++ b/htdocs/expedition/card.php
@@ -712,13 +712,16 @@ if ($action == 'create')
}
// Document model
- print "
| ".$langs->trans("Model")." | ";
- print '';
include_once DOL_DOCUMENT_ROOT . '/core/modules/expedition/modules_expedition.php';
$liste = ModelePdfExpedition::liste_modeles($db);
- print $form->selectarray('model', $liste, $conf->global->EXPEDITION_ADDON_PDF);
- print " |
\n";
-
+ if (count($liste) > 1)
+ {
+ print "| ".$langs->trans("Model")." | ";
+ print '';
+ print $form->selectarray('model', $liste, $conf->global->EXPEDITION_ADDON_PDF);
+ print " |
\n";
+ }
+
print "";
dol_fiche_end();