Skip to content

Commit

Permalink
Only need the _id here, not the data.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 16, 2013
1 parent a38fa4b commit 7e4fb52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/ActiveSync/lib/Horde/ActiveSync/State/Mongo.php
Expand Up @@ -892,7 +892,7 @@ public function removeState(array $options)
'$or' => array(array('device_rwstatus' => Horde_ActiveSync::RWSTATUS_PENDING), array('device_rwstatus' => Horde_ActiveSync::RWSTATUS_WIPED))
);
try {
$results = $this->_db->device->findOne($query);
$results = $this->_db->device->findOne($query, arary('_id'));
} catch (Exception $e) {
$this->_logger->err($e->getMessage());
throw new Horde_ActiveSync_Exception($e);
Expand Down Expand Up @@ -1241,7 +1241,7 @@ protected function _havePIMChanges()
'sync_folderid' => $this->_collection['id']
);
try {
return (bool)$c->find($query)->count();
return (bool)$c->find($query, array('_id'))->count();
} catch (Exception $e) {
$this->_logger->err($e->getMessage());
throw new Horde_ActiveSync_Exception($e);
Expand Down

0 comments on commit 7e4fb52

Please sign in to comment.