From 1faab4920d87f0ace6122779c57d7ef98631f077 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 4 Apr 2011 22:14:41 +0000 Subject: [PATCH] Can add a style --- htdocs/core/class/html.form.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index ce8f52270c0..462b4e00a0f 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -693,9 +693,10 @@ class Form * @param exclude List of contacts id to exclude * @param limitto Disable answers that are not id in this array list * @param showfunction Add function into label + * @param moreclass Add more class to class style * @return int <0 if KO, Nb of contact in list if OK */ - function select_contacts($socid,$selected='',$htmlname='contactid',$showempty=0,$exclude='',$limitto='',$showfunction=0) + function select_contacts($socid,$selected='',$htmlname='contactid',$showempty=0,$exclude='',$limitto='',$showfunction=0, $moreclass='') { global $conf,$langs; @@ -720,7 +721,7 @@ class Form $num=$this->db->num_rows($resql); if ($num == 0) return 0; - if ($htmlname != 'none') print ''; if ($showempty) print ''; $num = $this->db->num_rows($resql); $i = 0;