From 71ab297cca8238bb0d81ec09bf67514ddc5a9a36 Mon Sep 17 00:00:00 2001 From: Josh Grams Date: Thu, 6 Aug 2009 10:08:24 -0400 Subject: [PATCH] * template.php (parse_template): every tag preceded by string. --- template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/template.php b/template.php index c48d700..07e6e12 100644 --- a/template.php +++ b/template.php @@ -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; -- 1.7.10.4