From 34c8d6c0ee066b95acc15f8861bcd4193ddbc6c2 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 21 Nov 2011 20:30:08 +0100 Subject: Fixed a bug regarding tag parameter creation. If a tag parameter was empty, no string was created during trancompilation. Resulted in a PHP parsing error. --- stupid_template_engine.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stupid_template_engine.php b/stupid_template_engine.php index 69e5772..0edb880 100644 --- a/stupid_template_engine.php +++ b/stupid_template_engine.php @@ -823,6 +823,10 @@ function _transcompile($ast, $no_outputstack = False) /* The real transcompile f $code .= ";\n"; $text_and_var_buffer = array(); } + else if($no_outputstack) + { + $code = "\"\""; + } return $code; } -- cgit v1.2.3-70-g09d2