- bugfix variable name typo in {html_options} and {html_checkboxes} (Issue #54)

This commit is contained in:
rodneyrehm
2011-10-10 08:53:43 +00:00
parent 4c070d0bda
commit 1cfdafccdd
3 changed files with 6 additions and 2 deletions

View File

@@ -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)

View File

@@ -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;

View File

@@ -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;