Commit 5a3e0dec authored by Hannes Magnusson's avatar Hannes Magnusson

Fetch the correct option set

parent dcf47147
...@@ -319,7 +319,7 @@ class Collection { ...@@ -319,7 +319,7 @@ class Collection {
/* }}} */ /* }}} */
function count(array $filter = array(), array $options = array()) { /* {{{ */ function count(array $filter = array(), array $options = array()) { /* {{{ */
$options = array_merge($this->getFindOptions(), $options); $options = array_merge($this->getCountOptions(), $options);
$cmd = array( $cmd = array(
"count" => $this->collname, "count" => $this->collname,
"query" => $filter, "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