MongoDB: Fix num_rows

This commit is contained in:
Jakub Vrana 2021-02-09 10:56:52 +01:00
parent 3a3df6962b
commit 633e7ced9c

View file

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