Skip to content
Snippets Groups Projects
Commit e7add2f9 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Another way to show "0" values

parent a69b2a94
No related branches found
No related tags found
No related merge requests found
...@@ -131,8 +131,8 @@ class Form ...@@ -131,8 +131,8 @@ class Form
/** /**
* Show a text and picto with tooltip on text or picto * Show a text and picto with tooltip on text or picto
* @param text Texte to show * @param text Text to show
* @param htmltext Contenu html du tooltip, code en Html / UTF8 * @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 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 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) * @param img Code img du picto (use img_xxx() function to get it)
...@@ -193,7 +193,7 @@ class Form ...@@ -193,7 +193,7 @@ class Form
$s.='<table class="nobordernopadding" summary=""><tr>'; $s.='<table class="nobordernopadding" summary=""><tr>';
if ($direction > 0) if ($direction > 0)
{ {
if (!empty($text) || $text == 0) if ($text != '')
{ {
$s.='<td'.$paramfortooltiptext.'>'.$text; $s.='<td'.$paramfortooltiptext.'>'.$text;
if ($direction) $s.='&nbsp;'; if ($direction) $s.='&nbsp;';
...@@ -204,7 +204,7 @@ class Form ...@@ -204,7 +204,7 @@ class Form
else else
{ {
if ($direction) $s.='<td'.$paramfortooltippicto.' valign="top" width="14">'.$img.'</td>'; if ($direction) $s.='<td'.$paramfortooltippicto.' valign="top" width="14">'.$img.'</td>';
if (!empty($text) || $text == 0) if ($text != '')
{ {
$s.='<td'.$paramfortooltiptext.'>'; $s.='<td'.$paramfortooltiptext.'>';
if ($direction) $s.='&nbsp;'; if ($direction) $s.='&nbsp;';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment