From bd6bee3744a12c1e51d1206a713a3a6d3c14ee96 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 2 Dec 2006 11:56:39 +1300 Subject: [PATCH] Correct reference to displayname field. --- inc/caldav-PROPFIND.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-PROPFIND.php b/inc/caldav-PROPFIND.php index 33f3d83f..68f276f1 100644 --- a/inc/caldav-PROPFIND.php +++ b/inc/caldav-PROPFIND.php @@ -108,7 +108,7 @@ function collection_to_xml( $collection ) { $prop->NewElement("resourcetype", $resourcetypes ); } if ( isset($attribute_list['DISPLAYNAME']) ) { - $displayname = ( $collection->caldav_displayname == "" ? ucfirst(trim(str_replace("/"," ", $collection->dav_name))) : $collection->caldav_displayname ); + $displayname = ( $collection->dav_displayname == "" ? ucfirst(trim(str_replace("/"," ", $collection->dav_name))) : $collection->dav_displayname ); $prop->NewElement("displayname", $displayname ); } if ( isset($attribute_list['GETETAG']) ) {