From c52fb951b0b086cd1189d4cbc837da5245f3e914 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 6 Feb 2018 12:58:06 +0100 Subject: [PATCH] Do not modify $_GET["where"] --- adminer/include/adminer.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 00ca8c0f..413ca3ba 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -366,9 +366,8 @@ class Adminer { echo "\n"; } } - $_GET["where"][] = array(); $change_next = "this.parentNode.firstChild.onchange();"; - foreach ($_GET["where"] as $i => $val) { + foreach (array_merge((array) $_GET["where"], array(array())) as $i => $val) { if (!$val || ("$val[col]$val[val]" != "" && in_array($val["op"], $this->operators))) { echo "
" . select_input( " name='where[$i][col]'",