Alexander Nicolaysen Sørnes : comment: Fix possible undefined var in constructor
Chris Morgan
cmorgan at winehq.org
Tue Nov 6 23:23:34 CST 2007
Module: appdb
Branch: master
Commit: d05ee436f57d46478094e624724ab4a4835ea7c4
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=d05ee436f57d46478094e624724ab4a4835ea7c4
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Tue Nov 6 23:56:49 2007 +0100
comment: Fix possible undefined var in constructor
---
include/comment.php | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/include/comment.php b/include/comment.php
index ca29670..0a85529 100644
--- a/include/comment.php
+++ b/include/comment.php
@@ -46,7 +46,15 @@ class Comment {
{
$this->iCommentId = $oRow->commentId;
$this->iParentId = $oRow->parentId;
- $this->iAppId = $oRow->appId;
+
+ 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;
More information about the wine-cvs
mailing list