Skip to content

Commit

Permalink
Another off by one error.
Browse files Browse the repository at this point in the history
Fixes (mostly)harmless "message not found" errors.
  • Loading branch information
mrubinsk committed May 27, 2015
1 parent 0cb9e63 commit 2ae3b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/State/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public function getChanges(array $options = array())
Horde_ActiveSync::CHANGE_TYPE_CHANGE => 'move'
);
$cnt = count($changes);
for ($i = 0; $i <= $cnt; $i++) {
for ($i = 0; $i < $cnt; $i++) {
if (!empty($mailmap[$changes[$i]['id']][$changes[$i]['type']])) {
// @todo For 3.0, create a Changes and
// ChangeFilter classes to abstract out a bunch of
Expand Down

0 comments on commit 2ae3b0d

Please sign in to comment.