Do not modify $_GET["where"]
This commit is contained in:
parent
14429ff355
commit
c52fb951b0
|
@ -366,9 +366,8 @@ class Adminer {
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$_GET["where"][] = array();
|
|
||||||
$change_next = "this.parentNode.firstChild.onchange();";
|
$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))) {
|
if (!$val || ("$val[col]$val[val]" != "" && in_array($val["op"], $this->operators))) {
|
||||||
echo "<div>" . select_input(
|
echo "<div>" . select_input(
|
||||||
" name='where[$i][col]'",
|
" name='where[$i][col]'",
|
||||||
|
|
Loading…
Reference in a new issue