mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Bugfix: Previous commit didn't fix numeric indices
This commit is contained in:
parent
135831b116
commit
5d09a14193
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue