mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 16:07:03 +03:00
Cleanup & Speedup *Collection objects
This commit is contained in:
parent
f6fdb69c65
commit
ebfde6e360
12 changed files with 169 additions and 209 deletions
|
|
@ -155,15 +155,14 @@ class Folder
|
|||
|
||||
public function HasVisibleSubFolders() : bool
|
||||
{
|
||||
$sList = array();
|
||||
if ($this->oSubFolders)
|
||||
{
|
||||
$sList = $this->oSubFolders->FilterList(function (\MailSo\Mail\Folder $oFolder) {
|
||||
return $oFolder->IsSubscribed();
|
||||
});
|
||||
if ($this->oSubFolders) {
|
||||
foreach ($this->oSubFolders as $oFolder) {
|
||||
if ($oFolder->IsSubscribed()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0 < \count($sList);
|
||||
return false;
|
||||
}
|
||||
|
||||
public function IsSubscribed() : bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue