]> git.sesse.net Git - xml-template/blobdiff - php/xml-template.php
Fix "ID bleeding" in the PHP.
[xml-template] / php / xml-template.php
index 1a7434ae99947db0d62c56f411ea10cdd8f30484..37f7d653a071f8f84a8d4d836bed400ee4ad8cf5 100644 (file)
@@ -33,6 +33,8 @@ function XML_Template_process($node, $obj, $clean = 1)
                        $processed = false;
 
                        if ($child->node_type() == XML_ELEMENT_NODE) {
+                               unset($id);
+
                                $tag = $child->node_name();
                                $attrs = $child->attributes();
                                if (isset($attrs)) {