mirror of
https://github.com/vrana/adminer.git
synced 2025-08-18 12:21:24 +02:00
Elasticsearch: fix tables_list
otherwise it only returns "mappings" as the table
This commit is contained in:
@@ -222,7 +222,7 @@ if (isset($_GET["elastic"])) {
|
|||||||
global $connection;
|
global $connection;
|
||||||
$return = $connection->query('_mapping');
|
$return = $connection->query('_mapping');
|
||||||
if ($return) {
|
if ($return) {
|
||||||
$return = array_fill_keys(array_keys(reset($return)), 'table');
|
$return = array_fill_keys(array_keys($return[$connection->_db]["mappings"]), 'table');
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user