- 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

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