mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
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:
@@ -82,6 +82,9 @@ function smarty_function_html_checkboxes($params, &$smarty)
|
||||
$options = (array)$_val;
|
||||
break;
|
||||
|
||||
case 'assign':
|
||||
break;
|
||||
|
||||
default:
|
||||
if(!is_array($_val)) {
|
||||
$extra .= ' '.$_key.'="'.smarty_function_escape_special_chars($_val).'"';
|
||||
|
@@ -85,6 +85,8 @@ function smarty_function_html_radios($params, &$smarty)
|
||||
$options = (array)$_val;
|
||||
break;
|
||||
|
||||
case 'assign':
|
||||
break;
|
||||
|
||||
default:
|
||||
if(!is_array($_val)) {
|
||||
|
Reference in New Issue
Block a user