diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index c88ad31beef..59cf73b0fb9 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1557,12 +1557,15 @@ else { print '
'; print_titre($langs->trans('SendOrderByMail')); + + $soc = new Societe($db); + $soc->fetch($commande->soc_id) $liste[0]=" "; foreach ($soc->contact_email_array() as $key=>$value) - { - $liste[$key]=$value; - } + { + $liste[$key]=$value; + } // Créé l'objet formulaire mail include_once('../html.formmail.class.php');