mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Another fix for #175
This commit is contained in:
parent
0d31261063
commit
11547b575e
1 changed files with 5 additions and 14 deletions
|
|
@ -1066,25 +1066,16 @@ class MailClient
|
|||
|
||||
if (\count($aSearchedUids))
|
||||
{
|
||||
$aFlippedSearchedUids = \array_flip($aSearchedUids);
|
||||
|
||||
$bSearch = true;
|
||||
$aNewUids = array();
|
||||
|
||||
foreach ($aUids as $iUid)
|
||||
{
|
||||
if (isset($aFlippedSearchedUids[$iUid]))
|
||||
{
|
||||
if (\in_array($iUid, $aSearchedUids)) {
|
||||
$aNewUids[] = $iUid;
|
||||
}
|
||||
else if ($bUseThreads && !$oParams->iThreadUid && isset($aAllThreads[$iUid]) && \is_array($aAllThreads[$iUid]))
|
||||
{
|
||||
foreach ($aAllThreads[$iUid] as $iSubUid)
|
||||
{
|
||||
if (isset($aFlippedSearchedUids[$iSubUid]))
|
||||
{
|
||||
} else if ($bUseThreads && !$oParams->iThreadUid) {
|
||||
foreach ($aAllThreads as $aMap) {
|
||||
if (\in_array($iUid, $aMap) && \array_intersect($aSearchedUids, $aMap)) {
|
||||
$aNewUids[] = $iUid;
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue