1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-29 17:19:52 +02:00

Fix field selection in Elasticsearch

Thanks to cweiske: https://github.com/adminerevo/adminerevo/pull/159
This commit is contained in:
Peter Knut
2024-08-25 22:14:35 +02:00
parent 593c8e5bcc
commit 2ce88d9bdc
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -132,7 +132,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) {