From 09feb2e2ab54e40039cc47be56a68e9ab18754d1 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 19 Mar 2009 10:08:20 +1300 Subject: [PATCH] Really fix the cut and paste error here. --- inc/caldav-GET.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/caldav-GET.php b/inc/caldav-GET.php index 824c2464..f30b635b 100644 --- a/inc/caldav-GET.php +++ b/inc/caldav-GET.php @@ -50,6 +50,11 @@ else if ( $qry->rows == 1 && ! $request->IsCollection() ) { if ( $event->class == 'CONFIDENTIAL' && ! $request->AllowedTo('modify') ) { // if the event is confidential we fake one that just says "Busy" $confidential = new iCalComponent(); + + $ical = new iCalComponent( $event->caldav_data ); + $resources = $ical->GetComponents('VTIMEZONE',false); + $first = $resources[0]; + $confidential->SetType($event->caldav_type); $confidential->AddProperty( 'SUMMARY', translate('Busy') ); $confidential->AddProperty( 'CLASS', 'CONFIDENTIAL' );