mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
- bugfix possible warning "attempt to modify property of non-object" in {section} (issue #34)
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
|
27.09.2011
|
||||||
|
- bugfix possible warning "attempt to modify property of non-object" in {section} (issue #34)
|
||||||
|
|
||||||
26.09.2011
|
26.09.2011
|
||||||
- bugfix repeated calls to same subtemplate did not make use of cached template object
|
- bugfix repeated calls to same subtemplate did not make use of cached template object
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@ class Smarty_Internal_Compile_Section extends Smarty_Internal_CompileBase {
|
|||||||
|
|
||||||
$section_name = $_attr['name'];
|
$section_name = $_attr['name'];
|
||||||
|
|
||||||
$output .= "unset(\$_smarty_tpl->tpl_vars['smarty']->value['section'][$section_name]);\n";
|
$output .= "if (isset(\$_smarty_tpl->tpl_vars['smarty']->value['section'][$section_name])) unset(\$_smarty_tpl->tpl_vars['smarty']->value['section'][$section_name]);\n";
|
||||||
$section_props = "\$_smarty_tpl->tpl_vars['smarty']->value['section'][$section_name]";
|
$section_props = "\$_smarty_tpl->tpl_vars['smarty']->value['section'][$section_name]";
|
||||||
|
|
||||||
foreach ($_attr as $attr_name => $attr_value) {
|
foreach ($_attr as $attr_name => $attr_value) {
|
||||||
|
Reference in New Issue
Block a user