Skip to content

Commit

Permalink
fix: remove redundant array_diff
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmersi authored and mrubinsk committed May 16, 2021
1 parent e5302ee commit 65d4fbb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Horde/Imap/Client/Base.php
Expand Up @@ -3993,9 +3993,8 @@ protected function _condstoreSync()
$vanished = $this->vanished($this->_selected, $modseq, array(
'ids' => $uids_ob
));
$disappear = array_diff($uids_ob->ids, $vanished->ids);
if (!empty($disappear)) {
$this->_deleteMsgs($this->_selected, $this->getIdsOb($disappear));
if (!empty($vanished->ids)) {
$this->_deleteMsgs($this->_selected, $this->getIdsOb($vanished->ids));
}

$mbox_ob->sync = true;
Expand Down

0 comments on commit 65d4fbb

Please sign in to comment.