summaryrefslogtreecommitdiff
path: root/lib/Kolab/CalDAV/Plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Kolab/CalDAV/Plugin.php')
-rw-r--r--lib/Kolab/CalDAV/Plugin.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Kolab/CalDAV/Plugin.php b/lib/Kolab/CalDAV/Plugin.php
index 87ccacf..b3bc367 100644
--- a/lib/Kolab/CalDAV/Plugin.php
+++ b/lib/Kolab/CalDAV/Plugin.php
@@ -65,9 +65,11 @@ class Plugin extends CalDAV\Plugin
// keep the parsed object in memory for later processing
if ($vobj->name == 'VCALENDAR') {
self::$parsed_vcalendar = $vobj;
- foreach ($vobj->getBaseComponents('VEVENT') as $vevent) {
- self::$parsed_vevent = $vevent;
- break;
+ foreach ($vobj->getBaseComponents() as $vevent) {
+ if ($vevent->name == 'VEVENT' || $vevent->name == 'VTODO') {
+ self::$parsed_vevent = $vevent;
+ break;
+ }
}
}
}