From 14429ff355bd9bca784dd633cd042a1fb168db64 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 6 Feb 2018 12:56:18 +0100 Subject: [PATCH] Display empty operator as LIKE %% --- adminer/include/adminer.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 29aac50f..00ca8c0f 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -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 = "";