From 4646fed7912f4ae9caa502ffbe1a43d7e0d2d70a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 19 Feb 2007 06:06:08 +0000 Subject: [PATCH] an other small fix for the readonly time --- etemplate/inc/class.date_widget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.date_widget.inc.php b/etemplate/inc/class.date_widget.inc.php index 3171687a75..70a0566161 100644 --- a/etemplate/inc/class.date_widget.inc.php +++ b/etemplate/inc/class.date_widget.inc.php @@ -177,7 +177,7 @@ ); for ($str='',$n = substr($type,-4) == 'only' ? 3 : 0; $n < count($format); ++$n) { - if ($value[$format[$n]]) + if ((string) $value[$format[$n]] !== '') { if (!$n && $options & 16 ) {