comment: Fix possible undefined var in constructor
This commit is contained in:
committed by
Chris Morgan
parent
0776bdeeb9
commit
d05ee436f5
@@ -46,7 +46,15 @@ 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;
|
||||
}
|
||||
$this->iVersionId = $oRow->versionId;
|
||||
$this->sSubject = $oRow->subject;
|
||||
$this->sBody = $oRow->body;
|
||||
|
||||
Reference in New Issue
Block a user