Elasticsearch: fix tables_list

otherwise it only returns "mappings" as the table
This commit is contained in:
Gargaj 2014-09-06 01:43:34 +02:00 committed by Jakub Vrana
parent 9315954f3e
commit 024d73934f

View file

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