comment: Prevent accessing some undefined variables
This commit is contained in:
committed by
Alexander Nicolaysen Sørnes
parent
f95f3d533a
commit
e641db3d6c
@@ -47,14 +47,9 @@ class Comment {
|
|||||||
$this->iCommentId = $oRow->commentId;
|
$this->iCommentId = $oRow->commentId;
|
||||||
$this->iParentId = $oRow->parentId;
|
$this->iParentId = $oRow->parentId;
|
||||||
|
|
||||||
if($oRow->appId)
|
$oVersion = new version($this->iVersionId);
|
||||||
{
|
$this->iAppId = $oVersion->iAppId;
|
||||||
$this->iAppId = $oRow->appId;
|
|
||||||
} else
|
|
||||||
{
|
|
||||||
$oVersion = new version($this->iVersionId);
|
|
||||||
$this->iAppId = $oApp->iAppId;
|
|
||||||
}
|
|
||||||
$this->iVersionId = $oRow->versionId;
|
$this->iVersionId = $oRow->versionId;
|
||||||
$this->sSubject = $oRow->subject;
|
$this->sSubject = $oRow->subject;
|
||||||
$this->sBody = $oRow->body;
|
$this->sBody = $oRow->body;
|
||||||
|
|||||||
Reference in New Issue
Block a user