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; }