diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-11-21 20:30:08 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-11-21 20:30:08 +0100 |
commit | 34c8d6c0ee066b95acc15f8861bcd4193ddbc6c2 (patch) | |
tree | f0721f57f559113bb26417686068fa3af0459bfc /stupid_template_engine.php | |
parent | 279a569f2db68a1af1e8b08d7ef410d088eae2bd (diff) | |
download | ste-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.php | 4 |
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; } |