From a56c06a76e9dbda0d284a7e7a148b9970b554ac9 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 16 Nov 2012 00:34:28 +0100 Subject: [PATCH] Fix parsing bug for constructs with subconstructs --- class.templater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.templater.php b/class.templater.php index eeb15ad..9b7b8a1 100644 --- a/class.templater.php +++ b/class.templater.php @@ -148,7 +148,7 @@ class NewTemplater foreach($subconstructs[$current_level + 1] as $subconstruct) { /* For each subconstruct, create the appropriate element and throw it on the stack. */ - if($subconstruct['name'] == $construct_name) + if($subconstruct['name'] == $construct_name || $subconstruct['name'] == null) { /* This is the first subconstruct - basically the one that relates to the original block * construct. We will create a special type of subconstruct - a ParentSubconstruct - to