diff --git a/include/comment.php b/include/comment.php index 09c2ab3..6a1716a 100644 --- a/include/comment.php +++ b/include/comment.php @@ -47,14 +47,9 @@ class Comment { $this->iCommentId = $oRow->commentId; $this->iParentId = $oRow->parentId; - if($oRow->appId) - { - $this->iAppId = $oRow->appId; - } else - { - $oVersion = new version($this->iVersionId); - $this->iAppId = $oApp->iAppId; - } + $oVersion = new version($this->iVersionId); + $this->iAppId = $oVersion->iAppId; + $this->iVersionId = $oRow->versionId; $this->sSubject = $oRow->subject; $this->sBody = $oRow->body;