diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-05-15 20:55:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-15 20:55:21 +0300 |
commit | 5a8e0e68abc5022fd6a02b71ae6598efe1f1e8fd (patch) | |
tree | 8eff200d2f5d74ce9eca86d50f47be75686a76e9 /lib | |
parent | edf2f91393fcd7e8478b2f9cc6e99971b3d6c6fa (diff) | |
parent | 4644193ce1b30ec7a72d4a9b40de1832dbeda890 (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.php | 2 |
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]; |