From 1cfdafccdd9c275bca7a0087a51eae833e6e0c08 Mon Sep 17 00:00:00 2001 From: rodneyrehm Date: Mon, 10 Oct 2011 08:53:43 +0000 Subject: [PATCH] - bugfix variable name typo in {html_options} and {html_checkboxes} (Issue #54) --- change_log.txt | 4 ++++ libs/plugins/function.html_checkboxes.php | 2 +- libs/plugins/function.html_options.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/change_log.txt b/change_log.txt index f10d5595..d7c31df4 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,8 @@ ===== trunk ===== +10.10.2011 +- bugfix variable name typo in {html_options} and {html_checkboxes} (Issue #54) + +===== Smarty-3.1.3 ===== 07.10.2011 - improvement removed html comments from {mailto} (Forum Topic 20092) - bugfix testInstall() would not show path to internal plugins_dir (Forum Post 74627) diff --git a/libs/plugins/function.html_checkboxes.php b/libs/plugins/function.html_checkboxes.php index d620621b..1e8beb48 100644 --- a/libs/plugins/function.html_checkboxes.php +++ b/libs/plugins/function.html_checkboxes.php @@ -84,7 +84,7 @@ function smarty_function_html_checkboxes($params, $template) foreach ($_val as $_sel) { if (is_object($_sel)) { if (method_exists($_sel, "__toString")) { - $selected = smarty_function_escape_special_chars((string) $_sel->__toString()); + $_sel = smarty_function_escape_special_chars((string) $_sel->__toString()); } else { trigger_error("html_checkboxes: selected attribute contains an object of class '". get_class($_sel) ."' without __toString() method", E_USER_NOTICE); continue; diff --git a/libs/plugins/function.html_options.php b/libs/plugins/function.html_options.php index 0a2b9772..86266e26 100644 --- a/libs/plugins/function.html_options.php +++ b/libs/plugins/function.html_options.php @@ -70,7 +70,7 @@ function smarty_function_html_options($params, $template) foreach ($_val as $_sel) { if (is_object($_sel)) { if (method_exists($_sel, "__toString")) { - $selected = smarty_function_escape_special_chars((string) $_sel->__toString()); + $_sel = smarty_function_escape_special_chars((string) $_sel->__toString()); } else { trigger_error("html_options: selected attribute contains an object of class '". get_class($_sel) ."' without __toString() method", E_USER_NOTICE); continue;