cast selected value to string for comparison in html_radios

This commit is contained in:
mohrt
2005-04-15 16:32:30 +00:00
parent 7665c6e51f
commit 52b17797db
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@@ -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 - updated html_select_date's year_as_text-feature to be xhtml compliant
(Mark West, messju) (Mark West, messju)
- fix handling of selected month html_select_date (Yuri Weseman, messju) - fix handling of selected month html_select_date (Yuri Weseman, messju)

View File

@@ -137,7 +137,7 @@ function smarty_function_html_radios_output($name, $value, $output, $selected, $
if ($labels) $_output .= ' id="' . $_id . '"'; if ($labels) $_output .= ' id="' . $_id . '"';
if ($value==$selected) { if ((string)$value==$selected) {
$_output .= ' checked="checked"'; $_output .= ' checked="checked"';
} }
$_output .= $extra . ' />' . $output; $_output .= $extra . ' />' . $output;