From 0b3b79e9c675602acd582aadefd44c4dbb6bf55b Mon Sep 17 00:00:00 2001 From: messju Date: Mon, 30 Jun 2003 15:08:59 +0000 Subject: [PATCH] re-fixed cacheable_state-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 49648cc7..8058cb2e 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -2001,7 +2001,7 @@ class Smarty_Compiler extends Smarty { function _push_cacheable_state($type, $name) { $_cacheable = !isset($this->_plugins[$type][$name]) || $this->_plugins[$type][$name][4]; if ($_cacheable - || $this->_cacheable_state++) return ''; + || 0==$this->_cacheable_state++) return ''; if (!isset($this->_cache_serial)) $this->_cache_serial = md5(uniqid('Smarty')); $_ret = 'if ($this->caching) { echo \'{nocache:' . $this->_cache_serial . '#' . $this->_nocache_count