From 1b41d7b936c55878d4676fc6d97285e14039f5d8 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 30 Sep 2010 08:41:05 +0000 Subject: [PATCH] Fix: i can view a zero value --- htdocs/core/class/html.form.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 1d425c49497..cf42424a0d9 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -193,7 +193,7 @@ class Form $s.=''; if ($direction > 0) { - if ($text) + if (!empty($text) || $text == 0) { $s.=''.$text; if ($direction) $s.=' '; @@ -204,7 +204,7 @@ class Form else { if ($direction) $s.=''.$img.''; - if ($text) + if (!empty($text) || $text == 0) { $s.=''; if ($direction) $s.=' ';