mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +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)
|
if ($oFolderCollection instanceof \MailSo\Mail\FolderCollection)
|
||||||
{
|
{
|
||||||
foreach ($oFolderCollection as $i => $oFolder) {
|
$aFolders = $oFolderCollection->getArrayCopy();
|
||||||
|
foreach ($aFolders as $i => $oFolder) {
|
||||||
if (!$oFolder->IsSelectable()) {
|
if (!$oFolder->IsSelectable()) {
|
||||||
unset($oFolderCollection[$i]);
|
unset($aFolders[$i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$oFolderCollection->exchangeArray(\array_values($aFolders));
|
||||||
|
|
||||||
$oSettingsLocal = $this->SettingsProvider(true)->Load($oAccount);
|
$oSettingsLocal = $this->SettingsProvider(true)->Load($oAccount);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue