diff --git a/libs/sysplugins/smarty_internal_compile_section.php b/libs/sysplugins/smarty_internal_compile_section.php index 47c4778c..c2ec19fa 100644 --- a/libs/sysplugins/smarty_internal_compile_section.php +++ b/libs/sysplugins/smarty_internal_compile_section.php @@ -434,8 +434,7 @@ class Smarty_Internal_Compile_Section extends Smarty_Internal_CompileBase } $property = strtolower($property); $sectionVar = "'__section_{$name}'"; - //return "(isset(\$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}']) ? \$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}'] : null)"; - return "\$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}']"; + return "(isset(\$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}']) ? \$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}'] : null)"; } }