Fix html_options output to be XHTML compatible.

This commit is contained in:
andrey
2002-02-06 15:13:24 +00:00
parent 9b23c3f6d5
commit 120b1df0ed
2 changed files with 2 additions and 2 deletions

View File

@@ -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]."</option>\n";
}
}

View File

@@ -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]."</option>\n";
}
}