]> git.joonet.de Git - adminer.git/commitdiff
PHP <5.6 compatibility
authorJakub Vrana <jakub@vrana.cz>
Sun, 16 Feb 2025 15:15:59 +0000 (16:15 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 10:16:41 +0000 (11:16 +0100)
adminer/select.inc.php

index 91c83e1ab1ebdc25f379127f585f6db4f0bd96bc..629f6a64faf69cb0d2b3aa290db9fb50714efc8a 100644 (file)
@@ -224,7 +224,7 @@ if (is_ajax()) {
 
 $set = null;
 if (isset($rights["insert"]) || !support("table")) {
-       $params = [];
+       $params = array();
        foreach ((array) $_GET["where"] as $val) {
                if (isset($foreign_keys[$val["col"]]) && count($foreign_keys[$val["col"]]) == 1
                        && ($val["op"] == "=" || (!$val["op"] && (is_array($val["val"]) || !preg_match('~[_%]~', $val["val"]))) // LIKE in Editor