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:
authorVitor Mattos <vitor@php.rio>2022-04-20 16:56:13 +0300
committerVitor Mattos <vitor@php.rio>2022-04-20 16:56:13 +0300
commit97509d2819f3456f5d4ded8c0e9c786c24b85a87 (patch)
treedbde786f171b8864891c538f5f0a5b3c825894cc /lib
parentb6247b0fd27c65318598b415230da90df18b1512 (diff)
Fix access to undefined key
Signed-off-by: Vitor Mattos <vitor@php.rio>
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;
}