Skip to content

Commit

Permalink
Don't stat the message if we don't have an entry in the map table.
Browse files Browse the repository at this point in the history
Prevents unnecessary stating when we have *some* change in the map
table for the collection, but the current change set has more than
just that one change.
  • Loading branch information
mrubinsk committed Oct 16, 2013
1 parent 45e13a9 commit 97d5749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/State/Sql.php
Expand Up @@ -984,7 +984,7 @@ public function getChanges(array $options = array())
// should never, ever need to send a REMOVE to the client
// if we have a delete entry in the map table.
$stat['mod'] = 0;
} else {
} elseif ($pim_ts) {
// stat only returns MODIFY times, not deletion times,
// so will return (int)0 for ADD or DELETE.
$stat = $this->_backend->statMessage($this->_folder->serverid(), $change['id']);
Expand Down

0 comments on commit 97d5749

Please sign in to comment.