Correct path -> dav_name reference.

This commit is contained in:
Andrew McMillan committed 2012-07-09 01:17:06 +12:00
1 parent 3dba46cd8e
commit 6c2b0bbd3b
1 file changed
+1 -1
+1 -1
View File
@@ -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);