Correct reference to displayname field.

This commit is contained in:
Andrew McMillan 2006-12-02 11:56:39 +13:00
parent 28f4c87e36
commit bd6bee3744

View File

@ -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']) ) {