Calendar: only run ->expand if the event is repeating

remotes/origin/stable45
Georg Ehrke 2012-06-19 13:30:45 +07:00
parent 2b2da6fe35
commit 5ce0097b6f
1 changed files with 3 additions and 1 deletions

@ -398,7 +398,9 @@ class OC_Calendar_App{
$return[] = array_merge($staticoutput, $dynamicoutput);
}
}else{
$object->expand($start, $end);
if(OC_Calendar_Object::isrepeating($id)){
$object->expand($start, $end);
}
foreach($object->getComponents() as $singleevent){
if(!($singleevent instanceof Sabre_VObject_Component_VEvent)){
continue;