- Ported patch #6470 by Brian: fixed more XHTML erros related to multiple selects.

4.5.x
Dries Buytaert 2004-03-24 06:01:43 +00:00
parent 2fe664016c
commit 6bd3c11a40
1 changed files with 1 additions and 1 deletions

View File

@ -1003,7 +1003,7 @@ function form_select($title, $name, $value, $options, $description = NULL, $extr
foreach ($options as $key => $choice) {
$select .= "<option value=\"$key\"". (is_array($value) ? (in_array($key, $value) ? " selected=\"selected\"" : "") : ($value == $key ? " selected=\"selected\"" : "")) .">". check_form($choice) ."</option>";
}
return theme("form_element", $title, "<select name=\"edit[$name]". ($multiple ? "[]" : "") ."\"". ($multiple ? " multiple " : "") . ($extra ? " $extra" : "") ." id=\"$name\">$select</select>", $description, $name);
return theme("form_element", $title, "<select name=\"edit[$name]". ($multiple ? "[]" : "") ."\"". ($multiple ? " multiple=\"multiple\" " : "") . ($extra ? " $extra" : "") ." id=\"$name\">$select</select>", $description, $name);
}
function form_file($title, $name, $size, $description = NULL) {