From b88794b54b3195d6d851988696d0a9b816cbc254 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 26 Dec 2023 16:54:29 +0100 Subject: [PATCH] Bugfix: Folders array_filter(): Argument #1 ($array) must be of type array, null given --- snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Folders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Folders.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Folders.php index 64d6f6782..09e9ba7cc 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Folders.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Folders.php @@ -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); }));