From d271d0b48107693a215bea8bdcf3325c79aafa2c Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 11 Mar 2018 16:07:54 +0100 Subject: [PATCH] Elasticsearch: Fix PHP warning --- adminer/drivers/elastic.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/adminer/drivers/elastic.inc.php b/adminer/drivers/elastic.inc.php index 39a7aa9e..00f325ac 100644 --- a/adminer/drivers/elastic.inc.php +++ b/adminer/drivers/elastic.inc.php @@ -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"];