HTML validity
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@890 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
35c8c6baa4
commit
7cea63e513
|
@ -300,7 +300,7 @@ function input($field, $value, $function) {
|
||||||
echo (count($functions) > 1 ? '<select name="function[' . $name . ']">' . optionlist($functions, $function) . '</select>' : " ") . '<td>';
|
echo (count($functions) > 1 ? '<select name="function[' . $name . ']">' . optionlist($functions, $function) . '</select>' : " ") . '<td>';
|
||||||
$options = adminer_edit_input($_GET["edit"], $field); // usage in call is without a table
|
$options = adminer_edit_input($_GET["edit"], $field); // usage in call is without a table
|
||||||
if (is_array($options)) {
|
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
|
} elseif ($field["type"] == "set") { //! 64 bits
|
||||||
preg_match_all("~'((?:[^']+|'')*)'~", $field["length"], $matches);
|
preg_match_all("~'((?:[^']+|'')*)'~", $field["length"], $matches);
|
||||||
foreach ($matches[1] as $i => $val) {
|
foreach ($matches[1] as $i => $val) {
|
||||||
|
|
Loading…
Reference in a new issue