From 31a7d1c879bb32bdc79a9af7af1b4238294e650e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Sch=C3=BCle?= Date: Mon, 15 Jan 2024 10:22:47 +0100 Subject: [PATCH] fix(Felamimail/Controller/Account): only create system folder if name is given --- tine20/Felamimail/Controller/Account.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tine20/Felamimail/Controller/Account.php b/tine20/Felamimail/Controller/Account.php index c81ed4c4670..7e012e751d5 100644 --- a/tine20/Felamimail/Controller/Account.php +++ b/tine20/Felamimail/Controller/Account.php @@ -1985,7 +1985,9 @@ protected function _autoCreateSystemAccountFolders(Felamimail_Model_Account $_ac ] as $folder) { $systemFolderField = $this->_getSystemFolderField($folder); $folderName = $_account->{$systemFolderField}; - $this->_createSystemFolder($_account, $folderName); + if (!empty($folderName)) { + $this->_createSystemFolder($_account, $folderName); + } } } catch (Felamimail_Exception_IMAPInvalidCredentials $feiic) { Tinebase_Core::getLogger()->notice(__METHOD__ . '::' . __LINE__ . ' ' . $feiic->getMessage());