1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +02:00

Select original if nothing else is selected

This commit is contained in:
Jakub Vrana
2018-02-07 12:46:43 +01:00
parent 06660882b5
commit c8bb112a5d

View File

@@ -14,6 +14,9 @@ class AdminerEnumOption {
$selected = $value; $selected = $value;
if (isset($_GET["select"])) { if (isset($_GET["select"])) {
$options[-1] = lang('original'); $options[-1] = lang('original');
if ($selected === null) {
$selected = -1;
}
} }
if ($field["null"]) { if ($field["null"]) {
$options[""] = "NULL"; $options[""] = "NULL";