From 4b6833ba65dbeb41f076d253d43329fa76c2ca67 Mon Sep 17 00:00:00 2001 From: Bohuslav Simek Date: Sat, 23 Mar 2019 09:24:41 +0100 Subject: [PATCH] MongoDB: number of records should be count on provide rows --- adminer/drivers/elastic.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/drivers/elastic.inc.php b/adminer/drivers/elastic.inc.php index 6c88f0ad..e5c2de58 100644 --- a/adminer/drivers/elastic.inc.php +++ b/adminer/drivers/elastic.inc.php @@ -84,7 +84,7 @@ if (isset($_GET["elastic"])) { var $num_rows, $_rows; function __construct($rows) { - $this->num_rows = count($this->_rows); + $this->num_rows = count($rows); $this->_rows = $rows; reset($this->_rows); } diff --git a/changes.txt b/changes.txt index e4c5446e..e4909031 100644 --- a/changes.txt +++ b/changes.txt @@ -5,6 +5,7 @@ Allow overwriting tables when copying them Cache busting for adminer.css MySQL: Fix creating users and changing password in MySQL 8 (bug #663) MySQL: Pass SRID to GeomFromText +Elasticsearch: Fix setting number of rows Adminer 4.7.1 (released 2019-01-24): Display the tables scrollbar (bug #647)