mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +02:00
Avoid deprecated each()
This commit is contained in:
@@ -366,11 +366,9 @@ class Adminer {
|
|||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$_GET["where"] = (array) $_GET["where"];
|
$_GET["where"][] = array();
|
||||||
reset($_GET["where"]);
|
|
||||||
$change_next = "this.parentNode.firstChild.onchange();";
|
$change_next = "this.parentNode.firstChild.onchange();";
|
||||||
for ($i = 0; $i <= count($_GET["where"]); $i++) {
|
foreach ($_GET["where"] as $i => $val) {
|
||||||
list(, $val) = each($_GET["where"]);
|
|
||||||
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]'",
|
||||||
|
Reference in New Issue
Block a user