1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Fix style

This commit is contained in:
Jakub Vrana
2025-02-21 10:57:11 +01:00
parent 0b3baa1e23
commit 63cffbbc8a
2 changed files with 3 additions and 3 deletions

View File

@@ -537,7 +537,7 @@ if (isset($_GET["elastic"])) {
$properties = array('properties' => $properties);
}
return connection()->query("_mapping/{$name}", $properties, 'PUT');
return connection()->query("_mapping/$name", $properties, 'PUT');
}
/** Drop types

View File

@@ -241,7 +241,7 @@ if (isset($_GET["elastic5"])) {
$this->_conn->affected_rows = 0;
foreach ($ids as $id) {
$query = "{$type}/{$id}";
$query = "$type/$id";
$response = $this->_conn->query($query, null, 'DELETE');
if ((isset($response['found']) && $response['found']) || (isset($response['result']) && $response['result'] == 'deleted')) {
$this->_conn->affected_rows++;
@@ -497,7 +497,7 @@ if (isset($_GET["elastic5"])) {
if (!empty($properties)) {
$properties = array('properties' => $properties);
}
return connection()->query("_mapping/{$name}", $properties, 'PUT');
return connection()->query("_mapping/$name", $properties, 'PUT');
}
/** Drop types