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>2020-05-15 20:55:21 +0300
committerGitHub <noreply@github.com>2020-05-15 20:55:21 +0300
commit5a8e0e68abc5022fd6a02b71ae6598efe1f1e8fd (patch)
tree8eff200d2f5d74ce9eca86d50f47be75686a76e9 /lib
parentedf2f91393fcd7e8478b2f9cc6e99971b3d6c6fa (diff)
parent4644193ce1b30ec7a72d4a9b40de1832dbeda890 (diff)
Merge pull request #3586 from nextcloud/backport/3580/stable19
[stable19] Correctly pick the parent if it is index 0 of the messages
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 1f4afbe2b..3e9b793e8 100644
--- a/lib/Controller/ChatController.php
+++ b/lib/Controller/ChatController.php
@@ -305,7 +305,7 @@ class ChatController extends AEnvironmentAwareController {
$commentKey = $commentIdToIndex[$commentId];
// Parent is already parsed in the message list
- if (!empty($commentIdToIndex[$parentId])) {
+ if (isset($commentIdToIndex[$parentId])) {
$parentKey = $commentIdToIndex[$parentId];
$messages[$commentKey]['parent'] = $messages[$parentKey];