there was little flaw in smarty_function_html_radios() and

smarty_function_html_checkboxes():

the newly introduced assign-attribute was still added to the
tag-output as an extra-attribute.

fixed.
This commit is contained in:
messju
2004-07-23 15:42:41 +00:00
parent c9844d410b
commit 5ee7d5a400
2 changed files with 5 additions and 0 deletions

View File

@@ -82,6 +82,9 @@ function smarty_function_html_checkboxes($params, &$smarty)
$options = (array)$_val; $options = (array)$_val;
break; break;
case 'assign':
break;
default: default:
if(!is_array($_val)) { if(!is_array($_val)) {
$extra .= ' '.$_key.'="'.smarty_function_escape_special_chars($_val).'"'; $extra .= ' '.$_key.'="'.smarty_function_escape_special_chars($_val).'"';

View File

@@ -85,6 +85,8 @@ function smarty_function_html_radios($params, &$smarty)
$options = (array)$_val; $options = (array)$_val;
break; break;
case 'assign':
break;
default: default:
if(!is_array($_val)) { if(!is_array($_val)) {