summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xml.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/xml.class b/xml.class
index 6a0f81a..f61793f 100644
--- a/xml.class
+++ b/xml.class
@@ -156,7 +156,7 @@ function end_element($parser, $name)
{
if (is_array($this->_stack[1]->$name))
array_push($this->_stack[1]->$name, &$this->_stack[0]);
- else if (($this->_stack[1]->$name))
+ else if (isset($this->_stack[1]->$name))
{
if (is_a($this->_stack[1]->$name, "it_xml"))
$this->_stack[1]->$name = array($this->_stack[1]->$name, &$this->_stack[0]);