From 1fa84aa92bd433429f369041fa0099aa1264f1e9 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 13 Sep 2012 10:02:45 +0200 Subject: [PATCH] Fix: better --- htdocs/core/class/html.form.class.php | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 8f196c85eab..5340083141a 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -370,18 +370,11 @@ class Form else $paramfortooltiptd =($extracss?' class="'.$extracss.'"':''); // Attribut to put on td text tag $s=""; - if (empty($notabs)) $s.=''; - if ($direction < 0) $s.='<'.$tag.$paramfortooltipimg.' valign="top" width="14">'.$img.''; - if ($text != '') - { - $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.''; - if (empty($notabs)) $s.='
'; + if (empty($notabs)) $s.=''; + if ($direction < 0) $s.='<'.$tag.$paramfortooltipimg.' valign="top" width="14"> '.$img.''; + if ($text != '') $s.='<'.$tag.$paramfortooltiptd.'>'.$text.''; + if ($direction > 0) $s.='<'.$tag.$paramfortooltipimg.' valign="top" width="14"> '.$img.''; + if (empty($notabs)) $s.='
'; return $s; }