Don't set a X-WR-CALNAME unless we have something to set it to.

This commit is contained in:
Andrew McMillan 2009-06-10 09:57:52 +12:00
parent 33d222bb61
commit a45d0fa3dc

View File

@ -94,7 +94,9 @@ else {
* the timezones that are referred to by the events we have selected. * the timezones that are referred to by the events we have selected.
*/ */
$vcal = new iCalComponent(); $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(); $need_zones = array();
$timezones = array(); $timezones = array();