Permalink
Browse files

HTML validity

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@890 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 35c8c6b commit 7cea63e513eb271b8fd6f4188f64d89293cbbd93 jakubvrana committed Jul 24, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/include/functions.inc.php
@@ -300,7 +300,7 @@ function input($field, $value, $function) {
echo (count($functions) > 1 ? '<select name="function[' . $name . ']">' . optionlist($functions, $function) . '</select>' : "&nbsp;") . '<td>';
$options = adminer_edit_input($_GET["edit"], $field); // usage in call is without a table
if (is_array($options)) {
- echo '<select name="fields[' . $name . ']"' . $onchange . '>' . optionlist($options, $value, true) . '</select>';
+ echo '<select name="fields[' . $name . ']"' . $onchange . '>' . optionlist(($options ? $options : array("" => "")), $value, true) . '</select>';
} elseif ($field["type"] == "set") { //! 64 bits
preg_match_all("~'((?:[^']+|'')*)'~", $field["length"], $matches);
foreach ($matches[1] as $i => $val) {

0 comments on commit 7cea63e

Please sign in to comment.