1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 22:56:46 +02:00

Pass operator from db.inc.php

This commit is contained in:
Jakub Vrana
2018-02-06 13:48:56 +01:00
parent d7f9b6b5de
commit f09a04ed09
2 changed files with 1 additions and 3 deletions

View 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();
}
}

View 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]";