From f609bdde3224b0164cde9b6e9e6442f3ce423b26 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 31 Dec 2009 22:16:05 +0000 Subject: [PATCH] merged r28876 from Jaytraxx: recognize zero value also as a real value --- phpgwapi/inc/horde/Horde/iCalendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/horde/Horde/iCalendar.php b/phpgwapi/inc/horde/Horde/iCalendar.php index 8bacdbd839..94efde396d 100644 --- a/phpgwapi/inc/horde/Horde/iCalendar.php +++ b/phpgwapi/inc/horde/Horde/iCalendar.php @@ -1141,7 +1141,7 @@ class Horde_iCalendar { } else { $value = str_replace(array("\r", "\n"), array('', '\\n'), $value); $attr_string = $name . $params_str; - if (!empty($value)) { + if (!empty($value) || $value === 0 || (is_string($value) && strlen($value) > 0)) { $attr_string .= ':' . $value; } elseif ($name != 'RRULE') { $attr_string .= ':';