From: Bart Visscher Date: Thu, 15 Sep 2011 09:26:13 +0000 (+0200) Subject: Fix conversion of VTODO and VJOURNAL items X-Git-Tag: v3.0~196 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b413dcfa7cb1906b674234569de2e494a3df07bc;p=nextcloud-server.git Fix conversion of VTODO and VJOURNAL items --- diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php index bf9831de8d4..aa30c7305dc 100644 --- a/apps/calendar/lib/object.php +++ b/apps/calendar/lib/object.php @@ -217,13 +217,13 @@ class OC_Calendar_Object{ } } elseif($property->name == 'VTODO' || $property->name == 'VJOURNAL'){ - $return[0] = $use->name; + $return[0] = $property->name; foreach($property->children as &$element){ - if($property->name == 'SUMMARY'){ - $return[3] = $property->value; + if($element->name == 'SUMMARY'){ + $return[3] = $element->value; } - elseif($property->name == 'UID'){ - $return[5] = $property->value; + elseif($element->name == 'UID'){ + $return[5] = $element->value; } };