JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
* template.php (parse_template): every tag preceded by string.
authorJosh Grams <josh@qualdan.com>
Thu, 6 Aug 2009 14:08:24 +0000 (10:08 -0400)
committerJosh Grams <josh@qualdan.com>
Thu, 6 Aug 2009 14:08:24 +0000 (10:08 -0400)
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;