]> git.joonet.de Git - adminer.git/commitdiff
Elasticsearch: Fix table_status()
authorJakub Vrana <jakub@vrana.cz>
Tue, 25 Mar 2014 16:38:40 +0000 (09:38 -0700)
committerJakub Vrana <jakub@vrana.cz>
Tue, 25 Mar 2014 16:38:40 +0000 (09:38 -0700)
adminer/drivers/elastic.inc.php

index f5d749e8b7afedc379d3059cc963449ef56e1517..6a143726d462c6d28e7ff288e3c4a91c248b0263 100644 (file)
@@ -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];
                        }
                }