Correct handling of empty CardDAV:address-data element in request.

This commit is contained in:
Andrew McMillan 2011-11-02 10:15:32 +13:00
parent d8d16c8ee9
commit b3c873d2bb

View File

@ -7,7 +7,8 @@ function get_address_properties( $address_data_xml ) {
global $address_data_properties;
$expansion = $address_data_xml->GetElements();
foreach( $expansion AS $k => $v ) {
$address_data_properties[strtoupper($v->GetAttribute('name'))] = true;
if ( $v instanceof XMLElement )
$address_data_properties[strtoupper($v->GetAttribute('name'))] = true;
}
}