aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-04 19:20:29 -0700
committerzotlabs <mike@macgirvin.com>2017-05-04 19:20:29 -0700
commite308c3d34afda1c467b049314324faa546294c9a (patch)
tree81352041e9dd94700e8be158ddda7ee66fea68f4 /vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php
parent977677d0051db24c6b7666a73c4dd6a48fe89377 (diff)
parent5c7acf4807aa427cf1391e0a5d044b453c38e619 (diff)
downloadvolse-hubzilla-e308c3d34afda1c467b049314324faa546294c9a.tar.gz
volse-hubzilla-e308c3d34afda1c467b049314324faa546294c9a.tar.bz2
volse-hubzilla-e308c3d34afda1c467b049314324faa546294c9a.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php')
-rw-r--r--vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php b/vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php
index 34028db85..a130cd61d 100644
--- a/vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php
+++ b/vendor/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php
@@ -26,7 +26,7 @@ class AddressData implements XmlDeserializable {
/**
* The deserialize method is called during xml parsing.
*
- * This method is called statictly, this is because in theory this method
+ * This method is called statically, this is because in theory this method
* may be used as a type of constructor, or factory method.
*
* Often you want to return an instance of the current class, but you are
@@ -51,7 +51,11 @@ class AddressData implements XmlDeserializable {
'version' => $reader->getAttribute('version') ?: '3.0',
];
- $reader->next();
+ $elems = (array)$reader->parseInnerTree();
+ $result['addressDataProperties'] = array_map(function($element) {
+ return $element['attributes']['name'];
+ }, $elems);
+
return $result;
}