]> git.joonet.de Git - adminer.git/commitdiff
Elasticsearch: Fix PHP warning
authorJakub Vrana <jakub@vrana.cz>
Sun, 11 Mar 2018 15:07:54 +0000 (16:07 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sun, 11 Mar 2018 15:07:54 +0000 (16:07 +0100)
adminer/drivers/elastic.inc.php

index 39a7aa9eed765a97f1e81038294334612d571ef0..00f325ac3abfd3e1dd91817e2649f5400ba408b4 100644 (file)
@@ -177,7 +177,8 @@ if (isset($_GET["elastic"])) {
                        return new Min_Result($return);
                }
 
-               function update($type, $record, $queryWhere) {
+               function update($type, $record, $queryWhere, $limit = 0, $separator = "\n") {
+                       //! use $limit
                        $parts = preg_split('~ *= *~', $queryWhere);
                        if (count($parts) == 2) {
                                $id = trim($parts[1]);
@@ -195,7 +196,8 @@ if (isset($_GET["elastic"])) {
                        return $response['created'];
                }
 
-               function delete($type, $queryWhere) {
+               function delete($type, $queryWhere, $limit = 0) {
+                       //! use $limit
                        $ids = array();
                        if (is_array($_GET["where"]) && $_GET["where"]["_id"]) {
                                $ids[] = $_GET["where"]["_id"];