Commit 7ddd1c13 authored by Hannes Magnusson's avatar Hannes Magnusson

Do not merge options, mongod doesn't like empty ones

This likely needs to be done for them all?
parent 7b1696bb
......@@ -534,7 +534,6 @@ class Collection {
* @return integer
*/
function count(array $filter = array(), array $options = array()) {
$options = array_merge($this->getCountOptions(), $options);
$cmd = array(
"count" => $this->collname,
"query" => $filter,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment