mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-07 15:27:43 +08:00
MessageListByRequestIndexOrUids no need to check array_key_exists
This commit is contained in:
parent
e3fd72571c
commit
58f98cd69d
1 changed files with 1 additions and 3 deletions
|
@ -785,9 +785,7 @@ class MailClient
|
|||
$sFetchType = $oRange->UID ? \MailSo\Imap\Enumerations\FetchType::UID : \MailSo\Imap\Enumerations\FetchType::INDEX;
|
||||
foreach ($aFetchResponse as /* @var $oFetchResponseItem \MailSo\Imap\FetchResponse */ $oFetchResponseItem) {
|
||||
$id = $oFetchResponseItem->GetFetchValue($sFetchType);
|
||||
if (\array_key_exists($id, $aCollection)) {
|
||||
$aCollection[$id] = Message::NewFetchResponseInstance($oMessageCollection->FolderName, $oFetchResponseItem);
|
||||
}
|
||||
$aCollection[$id] = Message::NewFetchResponseInstance($oMessageCollection->FolderName, $oFetchResponseItem);
|
||||
}
|
||||
$oMessageCollection->exchangeArray(\array_values(\array_filter($aCollection)));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue