Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-04-21 16:47:27 +0300
committerGitHub <noreply@github.com>2022-04-21 16:47:27 +0300
commit53a143fee22402a608d09cbcf9d8a9118e7bcad0 (patch)
tree9380fd92d23852c97b4104239c0853e218d106cb /lib
parent5a49d185d50e863158758d6caf1045e76d680672 (diff)
parent97509d2819f3456f5d4ded8c0e9c786c24b85a87 (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.php2
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;
}