diff options
author | Joas Schilling <coding@schilljs.com> | 2020-05-15 10:15:54 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-05-15 14:38:27 +0300 |
commit | 4644193ce1b30ec7a72d4a9b40de1832dbeda890 (patch) | |
tree | c7c069066c74b342d25f980084ff10cbc19f3fee /lib | |
parent | 7ae0ab8fdc19549361bcc7e2541ccdab37543719 (diff) |
Correctly pick the parent if it is index 0 of the messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
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]; |