summaryrefslogtreecommitdiff
path: root/stupid_template_engine.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-11-21 20:30:08 +0100
committerKevin Chabowski <kevin@kch42.de>2011-11-21 20:30:08 +0100
commit34c8d6c0ee066b95acc15f8861bcd4193ddbc6c2 (patch)
treef0721f57f559113bb26417686068fa3af0459bfc /stupid_template_engine.php
parent279a569f2db68a1af1e8b08d7ef410d088eae2bd (diff)
downloadste-34c8d6c0ee066b95acc15f8861bcd4193ddbc6c2.tar.gz
ste-34c8d6c0ee066b95acc15f8861bcd4193ddbc6c2.tar.bz2
ste-34c8d6c0ee066b95acc15f8861bcd4193ddbc6c2.zip
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.
Diffstat (limited to 'stupid_template_engine.php')
-rw-r--r--stupid_template_engine.php4
1 files changed, 4 insertions, 0 deletions
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;
}