From 389b6d0a7ceb9cca3d32ca5366d15ac3bf8f91f9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 6 Mar 2007 15:33:46 +0000 Subject: [PATCH] "small fix to display eg. 0h32 correct" --- 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 70a0566161..842c3e44bc 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 ((string) $value[$format[$n]] !== '') + if ($value[$format[$n]] && $n < 3 || $n >= 3 && ($value[$format[3]] || $value[$format[4]])) { if (!$n && $options & 16 ) {