MongoDB: Fix num_rows
This commit is contained in:
parent
3a3df6962b
commit
633e7ced9c
|
@ -58,7 +58,7 @@ if (isset($_GET["mongo"])) {
|
|||
}
|
||||
}
|
||||
}
|
||||
$this->num_rows = $result->count;
|
||||
$this->num_rows = count($this->_rows);
|
||||
}
|
||||
|
||||
function fetch_assoc() {
|
||||
|
|
Loading…
Reference in a new issue