From 9130dbda4e969ca247bf4d5437174b2aff7362e7 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 13 Sep 2012 09:57:12 +0200 Subject: [PATCH] Fix: wrong space --- htdocs/core/class/html.form.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 94cb20fafaa1f..8f196c85eab71 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -374,8 +374,10 @@ function textwithtooltip($text, $htmltext, $tooltipon = 1, $direction = 0, $img 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.'';