From b70af837df6d93ea5bc11b77d871fb95ffef2ecc Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 31 Oct 2012 09:59:24 +0100 Subject: [PATCH] Fix: avoid warning --- htdocs/core/class/html.formcompany.class.php | 21 +++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php index f4eca4bc09b..8563ce91200 100644 --- a/htdocs/core/class/html.formcompany.class.php +++ b/htdocs/core/class/html.formcompany.class.php @@ -625,17 +625,20 @@ class FormCompany */ function selectTypeContact($object, $selected, $htmlname = 'type', $source='internal', $order='code', $showempty=0) { - $lesTypes = $object->liste_type_contact($source, $order); - print ''; + if ($showempty) print ''; + foreach($lesTypes as $key=>$value) + { + print ''; + } + print "\n"; } - print "\n"; } /**