diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 61d1c08f2aa..e61f1af9617 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -400,14 +400,26 @@ 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.''.$tag.'>';
+ if ($direction < 0) {
+ $s.='<'.$tag.$paramfortooltipimg;
+ if ($tag == 'td') {
+ $s .= 'valign="top" ';
+ }
+ $s.= 'width="14">'.$img.''.$tag.'>';
+ }
// Use another method to help avoid having a space in value in order to use this value with jquery
// TODO add this in css
//if ($text != '') $s.='<'.$tag.$paramfortooltiptd.'>'.(($direction < 0)?' ':'').$text.(($direction > 0)?' ':'').''.$tag.'>';
$paramfortooltiptd.= (($direction < 0)?' style="padding-left: 3px !important;"':'');
$paramfortooltiptd.= (($direction > 0)?' style="padding-right: 3px !important;"':'');
if ((string) $text != '') $s.='<'.$tag.$paramfortooltiptd.'>'.$text.''.$tag.'>';
- if ($direction > 0) $s.='<'.$tag.$paramfortooltipimg.' valign="top" width="14">'.$img.''.$tag.'>';
+ if ($direction > 0) {
+ $s.='<'.$tag.$paramfortooltipimg;
+ if ($tag == 'td') {
+ $s .= 'valign="top" ';
+ }
+ $s.= 'width="14">'.$img.''.$tag.'>';
+ }
if (empty($notabs)) $s.='
';
return $s;
diff --git a/htdocs/core/lib/agenda.lib.php b/htdocs/core/lib/agenda.lib.php
index 3d51490f6b2..23a17534ccf 100644
--- a/htdocs/core/lib/agenda.lib.php
+++ b/htdocs/core/lib/agenda.lib.php
@@ -149,7 +149,7 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
if (! empty($conf->browser->phone)) print '';
else print '';
- if (! empty($conf->browser->phone)) print '';
+ if (! empty($conf->browser->phone)) print '
';
else print '
';
print ' |