From b4e2a14552ebbfee89fd4ee4afbaae3b2f1ac126 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 12 Mar 2010 18:32:46 +1300 Subject: [PATCH] Fix RRULE expansion handling. --- inc/caldav-REPORT-calquery.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/caldav-REPORT-calquery.php b/inc/caldav-REPORT-calquery.php index a77f7e72..f33db985 100644 --- a/inc/caldav-REPORT-calquery.php +++ b/inc/caldav-REPORT-calquery.php @@ -1,5 +1,7 @@ Exec("calquery",__LINE__,__FILE__) && $qry->rows > 0 ) { while( $calendar_object = $qry->Fetch() ) { if ( !$need_post_filter || apply_filter( $qry_filters, $calendar_object ) ) { - if ( $need_expansion ) expand_event_instances($ics, $expand_range_start, $expand_range_end); + if ( $need_expansion ) { + $ics = new iCalComponent($calendar_object->caldav_data); + $expanded = expand_event_instances($ics, $expand_range_start, $expand_range_end); + $calendar_object->caldav_data = $expanded->Render(); + } $responses[] = calendar_to_xml( $properties, $calendar_object ); } }