]> git.joonet.de Git - adminer.git/commitdiff
Display empty operator as LIKE %%
authorJakub Vrana <jakub@vrana.cz>
Tue, 6 Feb 2018 11:56:18 +0000 (12:56 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 6 Feb 2018 11:56:18 +0000 (12:56 +0100)
adminer/include/adminer.inc.php

index 29aac50f2c188c2a8a8bf25cd7082773dc5bbb65..00ca8c0f2575d3d23325258c33e8f5cec0c9c28b 100644 (file)
@@ -512,9 +512,9 @@ class Adminer {
                                $return[] = "MATCH (" . implode(", ", array_map('idf_escape', $index["columns"])) . ") AGAINST (" . q($_GET["fulltext"][$i]) . (isset($_GET["boolean"][$i]) ? " IN BOOLEAN MODE" : "") . ")";
                        }
                }
-               foreach ((array) $_GET["where"] as $val) {
+               foreach ((array) $_GET["where"] as $key => $val) {
                        if ($val["op"] == "") {
-                               $val["op"] = "LIKE %%";
+                               $val["op"] = $_GET["where"][$key]["op"] = "LIKE %%";
                        }
                        if ("$val[col]$val[val]" != "" && in_array($val["op"], $this->operators)) {
                                $prefix = "";