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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
@@ -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]";
|
||||
|
Reference in New Issue
Block a user