From 58f98cd69d18edc5e99d69e2fdabd9f87c3d444e Mon Sep 17 00:00:00 2001 From: djmaze <> Date: Thu, 6 Jan 2022 12:51:45 +0100 Subject: [PATCH] MessageListByRequestIndexOrUids no need to check array_key_exists --- snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php b/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php index bd37ffd18..e8c5d89bc 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php @@ -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))); }