From b413dcfa7cb1906b674234569de2e494a3df07bc Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Thu, 15 Sep 2011 11:26:13 +0200 Subject: [PATCH] Fix conversion of VTODO and VJOURNAL items --- apps/calendar/lib/object.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } }; -- 2.39.5