From ed9280c90cdf2f9de32c6e3cd966d3b375b3d415 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 13 Jul 2012 20:32:34 +1200 Subject: [PATCH] We might not have a $request calling this so use the object's path instead. --- inc/caldav-GET-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-GET-functions.php b/inc/caldav-GET-functions.php index b287ba0c..1f45cb38 100644 --- a/inc/caldav-GET-functions.php +++ b/inc/caldav-GET-functions.php @@ -47,7 +47,7 @@ function export_iCalendar( DAVResource $dav_resource ) { $where .= '(SELECT bound_source_id FROM dav_binding WHERE dav_binding.dav_name ~ :path_match '; $where .= 'UNION '; $where .= 'SELECT collection_id FROM collection WHERE collection.dav_name ~ :path_match) '; - $params = array( ':path_match' => '^'.$request->path ); + $params = array( ':path_match' => '^'.$dav_resource->dav_name() ); $distinct = 'DISTINCT ON (calendar_item.uid) '; } else {