1
0
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:
Peter Knut
2024-08-25 22:14:35 +02:00
committed by Jakub Vrana
parent 2128c05e53
commit ac9fd04f87
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

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