mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +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;
|
||||
$return = $connection->query('_mapping');
|
||||
if ($return) {
|
||||
$return = array_fill_keys(array_keys(reset($return)), 'table');
|
||||
$return = array_fill_keys(array_keys($return[$connection->_db]["mappings"]), 'table');
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user