Skip to content

Commit

Permalink
Caught by unit test - if I had a dime for everytime I did this...
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 9, 2015
1 parent 11cf727 commit fbf752a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Folder/Imap.php
Expand Up @@ -119,6 +119,7 @@ public function setChanges(array $messages, array $flags = array(), array $categ
$uidnext = $this->uidnext();
$minuid = $this->minuid();
$modseq = $this->modseq();

foreach ($messages as $uid) {
if ($uid >= $uidnext) {
// new (to us) message.
Expand All @@ -128,7 +129,7 @@ public function setChanges(array $messages, array $flags = array(), array $categ
// MODSEQ capable server, either a changed message, or
// one that was previously outside of FilterType but is now
// within.
if (array_search($uid, $this->_messages)) {
if (array_search($uid, $this->_messages) !== false) {
$this->_changed[] = $uid;
} else {
$this->_added[] = $uid;
Expand Down

0 comments on commit fbf752a

Please sign in to comment.