Get the name right.

This commit is contained in:
Andrew McMillan 2012-07-08 23:27:04 +12:00
parent 1be5cd808a
commit 5b43f06eb4

View File

@ -187,7 +187,7 @@ function component_to_xml( $properties, $item ) {
}
$href = new XMLElement("href", $url );
if ( $need_resource ) {
if ( !isset($dav_resource) ) $dav_resource = new DAVResource($item->path);
if ( !isset($dav_resource) ) $dav_resource = new DAVResource($item->dav_name);
$elements = $dav_resource->GetPropStat(array_keys($properties), $reply);
array_unshift($elements, $href);
}