Bugfix: Folders array_filter(): Argument #1 ($array) must be of type array, null given

This commit is contained in:
the-djmaze 2023-12-26 16:54:29 +01:00
parent 1a75a624cb
commit b88794b54b

View file

@ -68,7 +68,7 @@ trait Folders
}
}
$aCapabilities = \array_values(\array_filter($this->ImapClient()->Capability(), function ($item) {
$aCapabilities = \array_values(\array_filter($this->ImapClient()->Capability() ?: [], function ($item) {
return !\preg_match('/^(IMAP|AUTH|LOGIN|SASL)/', $item);
}));