summaryrefslogtreecommitdiff
path: root/it_xml.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_xml.class')
-rw-r--r--it_xml.class3
1 files changed, 3 insertions, 0 deletions
diff --git a/it_xml.class b/it_xml.class
index 2e687e1..93f8b4d 100644
--- a/it_xml.class
+++ b/it_xml.class
@@ -209,6 +209,9 @@ function end_element($dummy_parser, $name)
if (!$this->_stack[0]->consume($this->_p))
{
+ if (!isset($this->_stack[1]))
+ $this->_stack[1] = (object)[];
+
if (is_array($this->_stack[1]->$name))
array_push($this->_stack[1]->$name, $this->_stack[0]);
else if (isset($this->_stack[1]->$name))