From 6c2b0bbd3bb57557e1dbfd2ff42b433a5f9eda56 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 8 Jul 2012 21:58:10 +1200 Subject: [PATCH] Correct path -> dav_name reference. --- inc/caldav-REPORT.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-REPORT.php b/inc/caldav-REPORT.php index 13f779ae..df899122 100644 --- a/inc/caldav-REPORT.php +++ b/inc/caldav-REPORT.php @@ -129,7 +129,7 @@ function component_to_xml( $properties, $item ) { } if ( isset($c->hide_alarm) && $c->hide_alarm ) { - $dav_resource = new DAVResource($item->path); + $dav_resource = new DAVResource($item->dav_name); if ( isset($properties['calendar-data']) && !$dav_resource->HavePrivilegeTo('write') ) { dbg_error_log("REPORT","Stripping event alarms for: %s", $item->dav_name ); $vcal = new vCalendar($caldav_data);