]> git.joonet.de Git - adminer.git/commitdiff
Elastic: Report number of rows
authorJakub Vrana <jakub@vrana.cz>
Thu, 8 Aug 2013 23:02:23 +0000 (16:02 -0700)
committerJakub Vrana <jakub@vrana.cz>
Thu, 8 Aug 2013 23:02:23 +0000 (16:02 -0700)
adminer/drivers/elastic.inc.php

index b5337a57fb1a5e589ca5dab949ca288fa295eef4..d448a6b284771a9a232a59605da80dc1a5c2e6ac 100644 (file)
@@ -62,9 +62,10 @@ if (isset($_GET["elastic"])) {
                }
 
                class Min_Result {
-                       var $_rows;
+                       var $num_rows, $_rows;
 
                        function Min_Result($rows) {
+                               $this->num_rows = count($this->_rows);
                                $this->_rows = $rows;
                                reset($this->_rows);
                        }