summaryrefslogtreecommitdiff
path: root/plugins/libcalendaring
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-10-09 16:58:46 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-10-09 17:07:45 (GMT)
commit449d4ad81b6f65a60264f9b5749462ca1480928b (patch)
tree0902d65f67c13cdd00ea2658b2c98483f7ca50c0 /plugins/libcalendaring
parent7db58444a7bb53083bce76b7e504236ca00accb7 (diff)
downloadroundcubemail-plugins-kolab-449d4ad81b6f65a60264f9b5749462ca1480928b.tar.gz
Filter empty recurrence attributes
Diffstat (limited to 'plugins/libcalendaring')
-rw-r--r--plugins/libcalendaring/libvcalendar.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/libcalendaring/libvcalendar.php b/plugins/libcalendaring/libvcalendar.php
index bdf8dea..c80565d 100644
--- a/plugins/libcalendaring/libvcalendar.php
+++ b/plugins/libcalendaring/libvcalendar.php
@@ -436,15 +436,17 @@ class libvcalendar implements Iterator
if (!$params['INTERVAL'])
$params['INTERVAL'] = 1;
- $event['recurrence'] = $params;
+ $event['recurrence'] = array_filter($params);
break;
case 'EXDATE':
- $event['recurrence']['EXDATE'] = array_merge((array)$event['recurrence']['EXDATE'], self::convert_datetime($prop, true));
+ if (!empty($prop->value))
+ $event['recurrence']['EXDATE'] = array_merge((array)$event['recurrence']['EXDATE'], self::convert_datetime($prop, true));
break;
case 'RDATE':
- $event['recurrence']['RDATE'] = array_merge((array)$event['recurrence']['RDATE'], self::convert_datetime($prop, true));
+ if (!empty($prop->value))
+ $event['recurrence']['RDATE'] = array_merge((array)$event['recurrence']['RDATE'], self::convert_datetime($prop, true));
break;
case 'RECURRENCE-ID':