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 1aa03a1..7f07fe0 100644
--- a/xml.class
+++ b/xml.class
@@ -127,7 +127,7 @@ function start_element($parser, $name, $attrs)
$name = $this->_p['prefix'] . $name;
if (!class_exists($name))
- eval("class $name extends $this->_baseclass {}");
+ eval("class $name extends $this->_baseclass { function $name() {} }"); # Extend base class but overwrite constructor with an empty one
if (!$this->_stack && !$this->_p['factory'])
array_unshift($this->_stack, &$this);