diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-04-21 16:47:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-21 16:47:27 +0300 |
commit | 53a143fee22402a608d09cbcf9d8a9118e7bcad0 (patch) | |
tree | 9380fd92d23852c97b4104239c0853e218d106cb /lib | |
parent | 5a49d185d50e863158758d6caf1045e76d680672 (diff) | |
parent | 97509d2819f3456f5d4ded8c0e9c786c24b85a87 (diff) |
Merge pull request #7186 from nextcloud/bugfix/undefined-key
Fix access to undefined key
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; } |