mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +01:00
backport to 1.6: recognize zero value also as a real value
This commit is contained in:
parent
d899be3124
commit
2ac41f2803
@ -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 .= ':';
|
||||
|
Loading…
Reference in New Issue
Block a user