diff options
author | Christian Schneider | 2020-09-15 13:20:03 +0200 |
---|---|---|
committer | Christian Schneider | 2020-09-15 13:20:03 +0200 |
commit | 79fd50e172a50918d9018f54ab6e40606181f95b (patch) | |
tree | c3292f632de47c825d16c55ca51a00ce68b4b3a4 /it_xml.class | |
parent | f42d056812d4c1766d75bd8ab6d871e06a700302 (diff) | |
download | itools-79fd50e172a50918d9018f54ab6e40606181f95b.tar.gz itools-79fd50e172a50918d9018f54ab6e40606181f95b.tar.bz2 itools-79fd50e172a50918d9018f54ab6e40606181f95b.zip |
Make itools PHP 8 compatible
Diffstat (limited to 'it_xml.class')
-rw-r--r-- | it_xml.class | 3 |
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)) |