From 97509d2819f3456f5d4ded8c0e9c786c24b85a87 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Wed, 20 Apr 2022 10:56:13 -0300 Subject: Fix access to undefined key Signed-off-by: Vitor Mattos --- lib/Controller/ChatController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit v1.2.3