mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-18 14:00:17 +00:00
Correct handling of empty CardDAV:address-data element in request.
This commit is contained in:
parent
d8d16c8ee9
commit
b3c873d2bb
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user