aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php')
-rw-r--r--vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php b/vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php
index a130cd61d..5b7b2ee17 100644
--- a/vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php
+++ b/vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php
@@ -52,12 +52,15 @@ class AddressData implements XmlDeserializable {
];
$elems = (array)$reader->parseInnerTree();
+ $elems = array_filter($elems, function($element) {
+ return $element['name'] === '{urn:ietf:params:xml:ns:carddav}prop' &&
+ isset($element['attributes']['name']);
+ });
$result['addressDataProperties'] = array_map(function($element) {
return $element['attributes']['name'];
}, $elems);
return $result;
-
}
}