- fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables

This commit is contained in:
Uwe.Tews
2009-11-11 16:15:47 +00:00
parent d35746dd26
commit ba6ba0cf8d
4 changed files with 9 additions and 6 deletions

View File

@@ -151,8 +151,8 @@ class Smarty_Internal_Compile_Foreachelse extends Smarty_Internal_CompileBase {
// check and get attributes
$_attr = $this->_get_attributes($args);
list($_open_tag, $this->compiler->nocache) = $this->_close_tag(array('foreach'));
$this->_open_tag('foreachelse',array('foreachelse', $this->compiler->nocache));
list($_open_tag, $nocache) = $this->_close_tag(array('foreach'));
$this->_open_tag('foreachelse',array('foreachelse', $nocache));
return "<?php }} else { ?>";
}