From 95bcc29d5945417198a2020c1a1604ca3e9709b7 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 6 Dec 2022 14:26:51 +0100 Subject: [PATCH] Bugfix: Avatars From error when in Kolab folder/mailbox --- plugins/avatars/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/avatars/index.php b/plugins/avatars/index.php index 3edc0d79f..2abe34ec1 100644 --- a/plugins/avatars/index.php +++ b/plugins/avatars/index.php @@ -33,7 +33,9 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin { if ('MessageList' === $sAction && !empty($aResponseItem['Result']['@Collection'])) { foreach ($aResponseItem['Result']['@Collection'] as $id => $message) { - $aResponseItem['Result']['@Collection'][$id]['Avatar'] = $this->encryptFrom($message['From'][0]); + if (!empty($message['From'])) { + $aResponseItem['Result']['@Collection'][$id]['Avatar'] = $this->encryptFrom($message['From'][0]); + } } } else if ('Message' === $sAction && !empty($aResponseItem['Result']['From'])) { $aResponseItem['Result']['Avatar'] = $this->encryptFrom($aResponseItem['Result']['From'][0]);