From 873cc272ba0577e62e45e0c45d8317e0f3440636 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 29 Jul 2012 23:15:21 +1200 Subject: [PATCH] Let the VCalendar class handle how to get the UID from the calendar. --- inc/WritableCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/WritableCollection.php b/inc/WritableCollection.php index 68c78a3a..4c5f6efa 100644 --- a/inc/WritableCollection.php +++ b/inc/WritableCollection.php @@ -52,7 +52,7 @@ class WritableCollection extends DAVResource { $resource_type = $first->GetType(); } - $uid = $first->GetPValue('UID'); + $uid = $vcal->GetUID(); if ( empty($segment_name) ) { $segment_name = $uid.'.ics'; }