mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 04:04:10 +02:00
- bugfix possible warning "attempt to modify property of non-object" in {section} (issue #34)
This commit is contained in:
@@ -59,7 +59,7 @@ class Smarty_Internal_Compile_Section extends Smarty_Internal_CompileBase {
|
||||
|
||||
$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]";
|
||||
|
||||
foreach ($_attr as $attr_name => $attr_value) {
|
||||
|
||||
Reference in New Issue
Block a user