mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 08:34:20 +02:00
Fix style
This commit is contained in:
@@ -22,7 +22,7 @@ if (isset($_GET["elastic"])) {
|
||||
$file = @file_get_contents("$this->_url/" . ltrim($path, '/'), false, stream_context_create(array('http' => array(
|
||||
'method' => $method,
|
||||
'content' => $content !== null ? json_encode($content) : null,
|
||||
'header' => $content !== null ? 'Content-Type: application/json' : [],
|
||||
'header' => $content !== null ? 'Content-Type: application/json' : array(),
|
||||
'ignore_errors' => 1,
|
||||
'follow_location' => 0,
|
||||
'max_redirects' => 0,
|
||||
|
@@ -190,7 +190,7 @@ if (isset($_GET["elastic5"])) {
|
||||
if ($select != array("*")) {
|
||||
$fields = array();
|
||||
foreach ($select as $key) {
|
||||
$fields[$key] = $key == "_id" ? [$hit["_id"]] : $hit['fields'][$key];
|
||||
$fields[$key] = $key == "_id" ? array($hit["_id"]) : $hit['fields'][$key];
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user