diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index cf42424a0d9..78b00be8531 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -131,8 +131,8 @@ class Form /** * Show a text and picto with tooltip on text or picto - * @param text Texte to show - * @param htmltext Contenu html du tooltip, code en Html / UTF8 + * @param text Text to show + * @param htmltext Content html of tooltip, coded into HTML/UTF8 * @param tooltipon 1=tooltip sur texte, 2=tooltip sur picto, 3=tooltip sur les 2, 4=tooltip sur les 2 et force en Ajax * @param direction -1=Le picto est avant, 0=pas de picto, 1=le picto est apres * @param img Code img du picto (use img_xxx() function to get it) @@ -193,7 +193,7 @@ class Form $s.=''; if ($direction > 0) { - if (!empty($text) || $text == 0) + if ($text != '') { $s.=''.$text; if ($direction) $s.=' '; @@ -204,7 +204,7 @@ class Form else { if ($direction) $s.=''.$img.''; - if (!empty($text) || $text == 0) + if ($text != '') { $s.=''; if ($direction) $s.=' ';