diff options
-rw-r--r-- | lib/Controller/ChatController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php index da4acde02..1d490d485 100644 --- a/lib/Controller/ChatController.php +++ b/lib/Controller/ChatController.php @@ -554,7 +554,7 @@ class ChatController extends AEnvironmentAwareController { // Inject the reactions self into the $messages array foreach ($reactionsById as $messageId => $reactions) { - if (isset($messages[$commentIdToIndex[$messageId]])) { + if (isset($commentIdToIndex[$messageId]) && isset($messages[$commentIdToIndex[$messageId]])) { $messages[$commentIdToIndex[$messageId]]['reactionsSelf'] = $reactions; } |