Bugfix: Previous commit didn't fix numeric indices

This commit is contained in:
djmaze 2021-03-29 15:51:46 +02:00
parent 135831b116
commit 5d09a14193

View file

@ -36,11 +36,13 @@ trait Folders
if ($oFolderCollection instanceof \MailSo\Mail\FolderCollection)
{
foreach ($oFolderCollection as $i => $oFolder) {
$aFolders = $oFolderCollection->getArrayCopy();
foreach ($aFolders as $i => $oFolder) {
if (!$oFolder->IsSelectable()) {
unset($oFolderCollection[$i]);
unset($aFolders[$i]);
}
}
$oFolderCollection->exchangeArray(\array_values($aFolders));
$oSettingsLocal = $this->SettingsProvider(true)->Load($oAccount);