From 06bb35466334f86d7b7587b93f45f5f03e7cb5cf Mon Sep 17 00:00:00 2001 From: messju Date: Fri, 13 Aug 2004 13:32:27 +0000 Subject: [PATCH] fixed handling of {foreachelse} and {sectionelse} that got borked with the latest commit (v 1.330) --- libs/Smarty_Compiler.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 4ca477db..c6a5b0ec 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -2205,10 +2205,12 @@ class Smarty_Compiler extends Smarty { return $this->_pop_tag($close_tag); } if ($close_tag == 'section' && $_open_tag == 'sectionelse') { - return $this->_pop_tag($close_tag); + $this->_pop_tag($close_tag); + return $_open_tag; } if ($close_tag == 'foreach' && $_open_tag == 'foreachelse') { - return $this->_pop_tag($close_tag); + $this->_pop_tag($close_tag); + return $_open_tag; } if ($_open_tag == 'else' || $_open_tag == 'elseif') { $_open_tag = 'if';