fixed html_options to not return an array

This commit is contained in:
mohrt
2003-03-14 15:52:34 +00:00
parent b8f4a39816
commit 8bfba9d22a
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -1,3 +1,4 @@
- fix html_radios to not return an array (Monte)
- fixed length in modifier.truncate.php (messju) - fixed length in modifier.truncate.php (messju)
- fixed handling of '$'-signs in trimwhitespace outputfilter (messju) - fixed handling of '$'-signs in trimwhitespace outputfilter (messju)
- fix bug that makes config files recompile every time - fix bug that makes config files recompile every time

View File

@@ -49,7 +49,7 @@ function smarty_function_html_radios($params, &$smarty)
} }
function smarty_function_html_radios_output($name, $value, $output, $checked, $separator) { function smarty_function_html_radios_output($name, $value, $output, $checked, $separator) {
$_output = '<input type="radio" name="' . smarty_function_escape_special_chars($name) . '[]' .'" value="' . smarty_function_escape_special_chars($value) . '"'; $_output = '<input type="radio" name="' . smarty_function_escape_special_chars($name) . '" value="' . smarty_function_escape_special_chars($value) . '"';
if (in_array($value, $checked)) { if (in_array($value, $checked)) {
$_output .= " checked=\"checked\""; $_output .= " checked=\"checked\"";