From 63d5a9886d93b2256c549c226eba801f12909837 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 18 Oct 2007 17:16:37 +1300 Subject: [PATCH] If we have full permissions to see this, we shouldn't care what type it is that we are returning. The iCalendar class has a better interface for this now, so we will use that. --- inc/caldav-GET.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/caldav-GET.php b/inc/caldav-GET.php index 3532da57..d0b8a0ee 100644 --- a/inc/caldav-GET.php +++ b/inc/caldav-GET.php @@ -65,8 +65,10 @@ else if ( $qry->rows > 1 ) { // Otherwise we hide the alarms (if configured to) $response .= $ical->Render(false, $event->caldav_type, $ical->DefaultPropertyList() ); } - } else - $response .= $ical->JustThisBitPlease("VEVENT"); + } + else { + $response .= $ical->Render(false); + } } foreach( $timezones AS $tzid => $vtimezone ) { $response .= $vtimezone;