diff --git a/libs/plugins/function.html_options.php b/libs/plugins/function.html_options.php index be956626..969de058 100644 --- a/libs/plugins/function.html_options.php +++ b/libs/plugins/function.html_options.php @@ -39,7 +39,7 @@ function smarty_function_html_options($params, &$smarty) $sel_check = $output[$i]; /* if more outputs than values, then check output against $selected */ if (in_array($sel_check, $selected)) - $html_result .= " selected"; + $html_result .= " selected=\"selected\""; $html_result .= ">".$output[$i]."\n"; } } diff --git a/plugins/function.html_options.php b/plugins/function.html_options.php index be956626..969de058 100644 --- a/plugins/function.html_options.php +++ b/plugins/function.html_options.php @@ -39,7 +39,7 @@ function smarty_function_html_options($params, &$smarty) $sel_check = $output[$i]; /* if more outputs than values, then check output against $selected */ if (in_array($sel_check, $selected)) - $html_result .= " selected"; + $html_result .= " selected=\"selected\""; $html_result .= ">".$output[$i]."\n"; } }