From 20640577a1d2ef2676e921bd97b777ac31dfda1e Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Thu, 30 Jul 2015 02:03:29 +0200 Subject: [PATCH] Revert "- optimize {section} compiler for speed and size of compiled code" This reverts commit 107409047308eef4246375f77a5d2b7acbb8a722. --- libs/sysplugins/smarty_internal_compile_section.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)"; } }