From bfec203093200b30eceb92edae8b009bb62ad611 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 7 Feb 2007 16:31:31 +0000 Subject: Fix multiple empty tags not creating an array --- xml.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml.class b/xml.class index 7f07fe0..ad4470c 100644 --- a/xml.class +++ b/xml.class @@ -152,7 +152,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)) $this->_stack[1]->$name = array($this->_stack[1]->$name, &$this->_stack[0]); else if (isset($this->_arrayforce[$name])) $this->_stack[1]->$name = array(&$this->_stack[0]); -- cgit v1.2.3