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]'",