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