We might not have a $request calling this so use the object's path instead.

This commit is contained in:
Andrew McMillan 2012-07-13 20:32:34 +12:00
parent 86b717a390
commit ed9280c90c

View File

@ -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 {