Get the topmost parent for the parent instead of doing endless recursion

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-07-24 10:39:22 +02:00
parent 59d8c92b64
commit 3b334169a8
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class Manager implements ICommentsManager {
if ($comment->getParentId() === '0') {
return $comment->getId();
} else {
return $this->determineTopmostParentId($comment->getId());
return $this->determineTopmostParentId($comment->getParentId());
}
}