diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 94cb20fafaa..8f196c85eab 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -374,8 +374,10 @@ class Form if ($direction < 0) $s.='<'.$tag.$paramfortooltipimg.' valign="top" width="14">'.$img.''; if ($text != '') { - $s.='<'.$tag.$paramfortooltiptd.'>'.$text; - if ($direction) $s.=' '; + $s.='<'.$tag.$paramfortooltiptd.'>'; + if ($direction < 0) $s.=' '; + $s.=$text; + if ($direction > 0) $s.=' '; $s.=''; } if ($direction > 0) $s.='<'.$tag.$paramfortooltipimg.' valign="top" width="14">'.$img.'';