- bugfix possible error message on unset() while compiling {block} tags https://github.com/smarty-php/smarty/issues/46

This commit is contained in:
Uwe Tews
2015-06-04 02:39:26 +02:00
parent fa269d418f
commit 2a1badfebb
2 changed files with 7 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
 ===== 3.1.25-dev===== (xx.xx.2015)  ===== 3.1.25-dev===== (xx.xx.2015)
01.06.2105 04.06.2015
- bugfix possible error message on unset() while compiling {block} tags https://github.com/smarty-php/smarty/issues/46
01.06.2015
- bugfix <?xml ... ?> including template variables broken since 3.1.22 https://github.com/smarty-php/smarty/issues/47 - bugfix <?xml ... ?> including template variables broken since 3.1.22 https://github.com/smarty-php/smarty/issues/47
27.05.2015 27.05.2015

View File

@@ -334,7 +334,9 @@ class Smarty_Internal_Compile_Blockclose extends Smarty_Internal_CompileBase
$_output = $compiler->parser->current_buffer->to_smarty_php(); $_output = $compiler->parser->current_buffer->to_smarty_php();
} }
} }
unset($compiler->template->block_data[$_name]['compiled']); if (isset($compiler->template->block_data[$_name]['compiled'])) {
unset($compiler->template->block_data[$_name]['compiled']);
}
// reset flags // reset flags
$compiler->parser->current_buffer = $saved_data[2]; $compiler->parser->current_buffer = $saved_data[2];
if ($compiler->nocache) { if ($compiler->nocache) {