]> git.joonet.de Git - adminer.git/commitdiff
Pass operator from db.inc.php
authorJakub Vrana <jakub@vrana.cz>
Tue, 6 Feb 2018 12:48:56 +0000 (13:48 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 6 Feb 2018 12:51:56 +0000 (13:51 +0100)
adminer/db.inc.php
adminer/include/adminer.inc.php

index 9439a30b7ead8f8c8ac97ed71e92a4f0424ffdc9..d606bf03397ae6e94154502e8a2e98225a1e2c1d 100644 (file)
@@ -61,6 +61,7 @@ if ($adminer->homepage()) {
                                echo " <input type='submit' name='search' value='" . lang('Search') . "'>\n";
                                echo "</div></fieldset>\n";
                                if ($_POST["search"] && $_POST["query"] != "") {
+                                       $_GET["where"][0]["op"] = "LIKE %%";
                                        search_tables();
                                }
                        }
index bbe43c5e839bb526982505785bd93419fa3c602c..6b82bc0ba88c7896d2485b3019d5a7ceb4c2493f 100644 (file)
@@ -512,9 +512,6 @@ class Adminer {
                        }
                }
                foreach ((array) $_GET["where"] as $key => $val) {
-                       if ($val["op"] == "") {
-                               $val["op"] = $_GET["where"][$key]["op"] = "LIKE %%";
-                       }
                        if ("$val[col]$val[val]" != "" && in_array($val["op"], $this->operators)) {
                                $prefix = "";
                                $cond = " $val[op]";