summaryrefslogtreecommitdiff
path: root/lib/Kolab/CalDAV/Plugin.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-06-20 12:27:43 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-06-20 12:27:43 (GMT)
commit09f5b3009a0b94f1b284dfe8e3ac358e7c6a695b (patch)
tree5bf102a1cc9bf0eed0ab649713e6a07ff8066013 /lib/Kolab/CalDAV/Plugin.php
parentdcd7143bd9a2914bfa9dcf1af51915ef24d9b168 (diff)
downloadiRony-09f5b3009a0b94f1b284dfe8e3ac358e7c6a695b.tar.gz
Expose tasks folders through CalDAV
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;
+ }
}
}
}