mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
cast selected value to string for comparison in html_radios
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
||||
- cast selected value to string for comparison in html_radios
|
||||
(Exeption, monte)
|
||||
- updated html_select_date's year_as_text-feature to be xhtml compliant
|
||||
(Mark West, messju)
|
||||
- fix handling of selected month html_select_date (Yuri Weseman, messju)
|
||||
|
@@ -137,7 +137,7 @@ function smarty_function_html_radios_output($name, $value, $output, $selected, $
|
||||
|
||||
if ($labels) $_output .= ' id="' . $_id . '"';
|
||||
|
||||
if ($value==$selected) {
|
||||
if ((string)$value==$selected) {
|
||||
$_output .= ' checked="checked"';
|
||||
}
|
||||
$_output .= $extra . ' />' . $output;
|
||||
|
Reference in New Issue
Block a user