From 395131c2d00efb57806d0e6162ea8d2d858cfc62 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Fri, 16 Oct 2009 13:13:33 +0000 Subject: [PATCH] - buxfix on assigning array elements inside templates --- change_log.txt | 3 +++ libs/sysplugins/internal.compile_assign.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index b585b21d..3b366416 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +10/15/2009 +- buxfix on assigning array elements inside templates + 10/15/2009 - allow bit operator '&' inside {if} tag - implementation of ternary operator diff --git a/libs/sysplugins/internal.compile_assign.php b/libs/sysplugins/internal.compile_assign.php index 52d95ca8..f2f3c1da 100644 --- a/libs/sysplugins/internal.compile_assign.php +++ b/libs/sysplugins/internal.compile_assign.php @@ -58,7 +58,7 @@ class Smarty_Internal_Compile_Assign extends Smarty_Internal_CompileBase { if ($_attr['index'] == '') { return "append($_attr[var],$_attr[value],false,$_nocache,$_scope);?>"; } else { - return "append($_attr[var],\$_tmp,true,$_nocache,$_scope);?>"; + return "append($_attr[var],\$_tmp,true,$_nocache,$_scope); unset (\$_tmp);?>"; } } else { return "assign($_attr[var],$_attr[value],$_nocache,$_scope);?>";