mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
Elasticsearch: Fix PHP warning
This commit is contained in:
@@ -177,7 +177,8 @@ if (isset($_GET["elastic"])) {
|
|||||||
return new Min_Result($return);
|
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);
|
$parts = preg_split('~ *= *~', $queryWhere);
|
||||||
if (count($parts) == 2) {
|
if (count($parts) == 2) {
|
||||||
$id = trim($parts[1]);
|
$id = trim($parts[1]);
|
||||||
@@ -195,7 +196,8 @@ if (isset($_GET["elastic"])) {
|
|||||||
return $response['created'];
|
return $response['created'];
|
||||||
}
|
}
|
||||||
|
|
||||||
function delete($type, $queryWhere) {
|
function delete($type, $queryWhere, $limit = 0) {
|
||||||
|
//! use $limit
|
||||||
$ids = array();
|
$ids = array();
|
||||||
if (is_array($_GET["where"]) && $_GET["where"]["_id"]) {
|
if (is_array($_GET["where"]) && $_GET["where"]["_id"]) {
|
||||||
$ids[] = $_GET["where"]["_id"];
|
$ids[] = $_GET["where"]["_id"];
|
||||||
|
Reference in New Issue
Block a user