mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
add a warning when an array is passed as the 'checked' value of html_radios
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
||||
- added warning message when an array is passed as
|
||||
the "checked" value of html_radios (Monte)
|
||||
- fixed errormessage in _compile_smarty_ref() (messju)
|
||||
- updated docs for html_image "name" -> "file" (messju)
|
||||
- fixed bug with html_options-optgroups (Nichlas L<>fdahl, messju)
|
||||
|
@@ -39,7 +39,11 @@ function smarty_function_html_radios($params, &$smarty)
|
||||
case 'name':
|
||||
case 'separator':
|
||||
case 'checked':
|
||||
if(is_array($_val)) {
|
||||
$smarty->trigger_error('the "checked"-attribute cannot be an array.', E_USER_WARNING);
|
||||
} else {
|
||||
$$_key = (string)$_val;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'options':
|
||||
|
Reference in New Issue
Block a user