JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
* template.php (parse_template): every tag preceded by string.
[wfpl.git] / template.php
index c48d700..07e6e12 100644 (file)
@@ -76,6 +76,7 @@ function parse_template($string) {
 
                        if(last($args) == '{') {  # open block
                                array_pop($args);  # drop '{'
+                               if(!is_string(last($tem['pieces']))) $tem['pieces'][] = '';
                                $tem =& tem_push($tem);              # create a new sub-template
                                $tem['parent']['pieces'][] =& $tem;  # as a piece of the parent
                                $tem['name'] = $name;