aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/xml.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/xml.php')
-rw-r--r--engine/lib/xml.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/xml.php b/engine/lib/xml.php
index 0d0d83da0..55ea1b5ad 100644
--- a/engine/lib/xml.php
+++ b/engine/lib/xml.php
@@ -127,8 +127,8 @@ function xml_to_object($xml) {
if ($tag['type'] == "complete" || $tag['type'] == "open") {
$elements[$index] = new XmlElement;
$elements[$index]->name = $tag['tag'];
- $elements[$index]->attributes = $tag['attributes'];
- $elements[$index]->content = $tag['value'];
+ $elements[$index]->attributes = elgg_get_array_value('attributes', $tag, '');
+ $elements[$index]->content = elgg_get_array_value('value', $tag, '');
if ($tag['type'] == "open") {
$elements[$index]->children = array();