From: Gargaj Date: Fri, 5 Sep 2014 23:43:34 +0000 (+0200) Subject: Elasticsearch: fix tables_list X-Git-Tag: v4.2.0~52 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=024d73934f3497563dd4f106ae548923d85b7581;p=adminer.git Elasticsearch: fix tables_list otherwise it only returns "mappings" as the table --- 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; }