mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Elasticsearch: Fix table_status()
This commit is contained in:
@@ -229,7 +229,7 @@ if (isset($_GET["elastic"])) {
|
||||
"facets" => array(
|
||||
"count_by_type" => array(
|
||||
"terms" => array(
|
||||
"field" => "_type"
|
||||
"field" => "_type",
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -240,10 +240,10 @@ if (isset($_GET["elastic"])) {
|
||||
$return[$table["term"]] = array(
|
||||
"Name" => $table["term"],
|
||||
"Engine" => "table",
|
||||
"Rows" => $table["count"]
|
||||
"Rows" => $table["count"],
|
||||
);
|
||||
}
|
||||
if ($name != "") {
|
||||
if ($name != "" && $name == $table["term"]) {
|
||||
return $return[$name];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user