fixed off-by-one-error in nocache-tag-handling

This commit is contained in:
messju
2003-07-02 09:01:26 +00:00
parent 295e8d8402
commit a5d18a8f3f

View File

@@ -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++)
. '}\';}';