From c778abe259ff69d39d9c7380f702742ec92ba23e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 5 Jul 2005 18:44:25 +0000 Subject: [PATCH] Fixed a duplicate variable name problem(?). --- template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template.php b/template.php index b7e8f6b..e94ecf9 100644 --- a/template.php +++ b/template.php @@ -530,10 +530,10 @@ class DB_Template { // sort so we do them in order ksort($conditionals); - foreach ($conditionals AS $parsed) + foreach ($conditionals AS $block) { // replace the old with the new - $template = str_replace($parsed['raw'], $parsed['parsed'], $template); + $template = str_replace($block['raw'], $block['parsed'], $template); } } // hackish way to get end tags working -- 2.22.5