From a5d18a8f3fed5a356632c2a1b2094285c7c58026 Mon Sep 17 00:00:00 2001 From: messju Date: Wed, 2 Jul 2003 09:01:26 +0000 Subject: [PATCH] fixed off-by-one-error in nocache-tag-handling --- libs/Smarty_Compiler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 8058cb2e..0cfac138 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -2019,7 +2019,7 @@ class Smarty_Compiler extends Smarty { function _pop_cacheable_state($type, $name) { $_cacheable = !isset($this->_plugins[$type][$name]) || $this->_plugins[$type][$name][4]; if ($_cacheable - || --$this->_cacheable_state>0) return ''; + || --$this->_cacheable_state>=0) return ''; return 'if ($this->caching) { echo \'{/nocache:' . $this->_cache_serial . '#' . ($this->_nocache_count++) . '}\';}';