mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Fix field selection in Elasticsearch
Thanks to cweiske: https://github.com/adminerevo/adminerevo/pull/159
This commit is contained in:
@@ -133,7 +133,7 @@ if (isset($_GET["elastic"])) {
|
||||
function select($table, $select, $where, $group, $order = array(), $limit = 1, $page = 0, $print = false) {
|
||||
$data = array();
|
||||
if ($select != array("*")) {
|
||||
$data["fields"] = $select;
|
||||
$data["fields"] = array_values($select);
|
||||
}
|
||||
|
||||
if ($order) {
|
||||
|
@@ -121,7 +121,7 @@ if (isset($_GET["elastic5"])) {
|
||||
function select($table, $select, $where, $group, $order = array(), $limit = 1, $page = 0, $print = false) {
|
||||
$data = array();
|
||||
if ($select != array("*")) {
|
||||
$data["fields"] = $select;
|
||||
$data["fields"] = array_values($select);
|
||||
}
|
||||
|
||||
if ($order) {
|
||||
|
Reference in New Issue
Block a user