From 633e7ced9c68b5c544c2e232840649a8aab9050e Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 9 Feb 2021 10:56:52 +0100 Subject: [PATCH] MongoDB: Fix num_rows --- adminer/drivers/mongo.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/drivers/mongo.inc.php b/adminer/drivers/mongo.inc.php index 0ab8f148..a3fc6200 100644 --- a/adminer/drivers/mongo.inc.php +++ b/adminer/drivers/mongo.inc.php @@ -58,7 +58,7 @@ if (isset($_GET["mongo"])) { } } } - $this->num_rows = $result->count; + $this->num_rows = count($this->_rows); } function fetch_assoc() {