]> git.joonet.de Git - adminer.git/commitdiff
MongoDB: Fix num_rows
authorJakub Vrana <jakub@vrana.cz>
Tue, 9 Feb 2021 09:56:52 +0000 (10:56 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 9 Feb 2021 10:04:18 +0000 (11:04 +0100)
adminer/drivers/mongo.inc.php

index 0ab8f148153924a8587e04608eb4c2f721fe07ed..a3fc6200285095cbac1c5358e6db714c8d875944 100644 (file)
@@ -58,7 +58,7 @@ if (isset($_GET["mongo"])) {
                                                }
                                        }
                                }
-                               $this->num_rows = $result->count;
+                               $this->num_rows = count($this->_rows);
                        }
 
                        function fetch_assoc() {