summaryrefslogtreecommitdiff
path: root/it_xml.class
diff options
context:
space:
mode:
authorNathan Gass2021-01-06 16:54:14 +0100
committerNathan Gass2021-01-06 16:54:14 +0100
commitbdb59ae566c1b4c78a4d82a881f8b1ffbf6dbbef (patch)
tree26d1bb58707c9b799f44866dc1640c106a474f87 /it_xml.class
parent6190f37f8a6b6dadccb0766326a0ad8781670f41 (diff)
parent7ee56cc6e8ea89c030b3eb5f8d4d4f8c1d5a053d (diff)
downloaditools-bdb59ae566c1b4c78a4d82a881f8b1ffbf6dbbef.tar.gz
itools-bdb59ae566c1b4c78a4d82a881f8b1ffbf6dbbef.tar.bz2
itools-bdb59ae566c1b4c78a4d82a881f8b1ffbf6dbbef.zip
Merge branch 'master' into ng/postgresql
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))