Elasticsearch: fix function table_status() for 2 or more tables
This commit is contained in:
parent
b40bfb94f5
commit
a8b7951a11
|
@ -211,9 +211,9 @@ if (isset($_GET["elastic"])) {
|
||||||
if ($return) {
|
if ($return) {
|
||||||
foreach ($return as $key => $type) { // _stats have just info about database
|
foreach ($return as $key => $type) { // _stats have just info about database
|
||||||
$return[$key] = array("Name" => $key, "Engine" => $type);
|
$return[$key] = array("Name" => $key, "Engine" => $type);
|
||||||
if ($name != "") {
|
}
|
||||||
return $return[$name];
|
if ($name != "") {
|
||||||
}
|
return $return[$name];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
|
|
Loading…
Reference in a new issue