made html_options output xhtml compatible

This commit is contained in:
mohrt
2001-09-20 17:00:43 +00:00
parent 5768f134e8
commit b52e7d9c68
3 changed files with 6 additions and 2 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- made html_options output xhtml compatible (Monte, Arnaud Limbourg)
Version 1.4.5
-------------
- update FAQ with index of questions at the top

View File

@@ -2,7 +2,9 @@
-----
Mostly bug fixes and minor improvements. Added compile id for separate compiled
versions of the same script. See the ChangeLog for detailed changes.
versions of the same script. The directory format and filename convention for
the files in templates_c has changed, so you may want to remove all of the
existing ones before you upgrade.
1.4.4
-----

View File

@@ -225,7 +225,7 @@ function smarty_func_html_options()
foreach ($options as $key => $value) {
$html_result .= "<option value=\"$key\"";
if (in_array($key, $selected))
$html_result .= " selected";
$html_result .= " selected=\"selected\"";
$html_result .= ">$value</option>\n";
}
} else {