"small fix to display eg. 0h32 correct"

This commit is contained in:
Ralf Becker 2007-03-06 15:33:46 +00:00
parent 23e964e6dd
commit 389b6d0a7c

View File

@ -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 )
{