mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-03 13:51:36 +01:00
- bugfix variable name typo in {html_options} and {html_checkboxes} (Issue #54)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user