diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-06 01:05:09 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-06 01:05:09 +0000 |
commit | 9dc42a9254fe971e8d4765a62ee83bc70a1d2fb7 (patch) | |
tree | 8917234cd8112db765d7947141643e4f2db73413 /engine/lib/xml.php | |
parent | dcc504978e665d164a2533196f707914cf841518 (diff) | |
download | elgg-9dc42a9254fe971e8d4765a62ee83bc70a1d2fb7.tar.gz elgg-9dc42a9254fe971e8d4765a62ee83bc70a1d2fb7.tar.bz2 |
Fixes #2774 - fixes several E_NOTICE issues - mostly due to accessign array indexes
git-svn-id: http://code.elgg.org/elgg/trunk@7844 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/xml.php')
-rw-r--r-- | engine/lib/xml.php | 4 |
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(); |