diff options
author | Vitor Mattos <vitor@php.rio> | 2022-04-20 16:56:13 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-04-20 16:56:13 +0300 |
commit | 97509d2819f3456f5d4ded8c0e9c786c24b85a87 (patch) | |
tree | dbde786f171b8864891c538f5f0a5b3c825894cc /lib | |
parent | b6247b0fd27c65318598b415230da90df18b1512 (diff) |
Fix access to undefined key
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib')
-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; } |