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 {