]> git.joonet.de Git - adminer.git/commitdiff
Fix displaying searched value
authorJakub Vrana <jakub@vrana.cz>
Tue, 1 Jun 2010 23:44:06 +0000 (01:44 +0200)
committerJakub Vrana <jakub@vrana.cz>
Tue, 1 Jun 2010 23:44:06 +0000 (01:44 +0200)
editor/include/adminer.inc.php

index dc8a9324a309246af7c970373647e768e5f3e192..135c048b06a03c1f5a1336758af5f5037b273ed4 100644 (file)
@@ -216,7 +216,7 @@ ORDER BY ORDINAL_POSITION");
                }
                $i = 0;
                foreach ($where as $val) {
-                       if ($columns[$val["col"]] && "$val[col]$val[val]" != "") {
+                       if (($val["col"] == "" || $columns[$val["col"]]) && "$val[col]$val[val]" != "") {
                                echo "<div><select name='where[$i][col]'><option value=''>(" . lang('anywhere') . ")" . optionlist($columns, $val["col"], true) . "</select>";
                                echo html_select("where[$i][op]", array(-1 => "") + $this->operators, $val["op"]);
                                echo "<input name='where[$i][val]' value='" . h($val["val"]) . "'></div>\n";