From 024d73934f3497563dd4f106ae548923d85b7581 Mon Sep 17 00:00:00 2001 From: Gargaj Date: Sat, 6 Sep 2014 01:43:34 +0200 Subject: [PATCH] Elasticsearch: fix tables_list otherwise it only returns "mappings" as the table --- adminer/drivers/elastic.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/drivers/elastic.inc.php b/adminer/drivers/elastic.inc.php index 3aac8331..6b1405a9 100644 --- a/adminer/drivers/elastic.inc.php +++ b/adminer/drivers/elastic.inc.php @@ -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; }