mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Fix set prefill
This commit is contained in:
@@ -57,8 +57,13 @@ if ($in) {
|
||||
$name = $field["field"];
|
||||
echo "<tr><th>" . $adminer->fieldName($field);
|
||||
$value = $_POST["fields"][$name];
|
||||
if ($value != "" && ereg("enum|set", $field["type"])) {
|
||||
$value = +$value;
|
||||
if ($value != "") {
|
||||
if ($field["type"] == "enum") {
|
||||
$value = +$value;
|
||||
}
|
||||
if ($field["type"] == "set") {
|
||||
$value = array_sum($value);
|
||||
}
|
||||
}
|
||||
input($field, $value, (string) $_POST["function"][$name]); // param name can be empty
|
||||
echo "\n";
|
||||
|
Reference in New Issue
Block a user