From a45d0fa3dcee2c0a73a6a20fc2278833b6ce88fb Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 10 Jun 2009 09:57:52 +1200 Subject: [PATCH] Don't set a X-WR-CALNAME unless we have something to set it to. --- inc/caldav-GET.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/caldav-GET.php b/inc/caldav-GET.php index 93f42c98..9ea0a6de 100644 --- a/inc/caldav-GET.php +++ b/inc/caldav-GET.php @@ -94,7 +94,9 @@ else { * the timezones that are referred to by the events we have selected. */ $vcal = new iCalComponent(); - $vcal->VCalendar( array("X-WR-CALNAME" => $request->collection->dav_displayname ) ); + if ( isset($request->collection->dav_displayname) ) { + $vcal->VCalendar( array("X-WR-CALNAME" => $request->collection->dav_displayname) ); + } $need_zones = array(); $timezones = array();