Alexander Nicolaysen Sørnes : downloadurl: Fix objectSetParent() on objects with versionId = 0

Alexander Nicolaysen Sørnes asornes at winehq.org
Thu Aug 6 11:49:41 CDT 2009


Module: appdb
Branch: master
Commit: 63762543dc080e5216b4ee966d44c9b2a4aab28b
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=63762543dc080e5216b4ee966d44c9b2a4aab28b

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Thu Aug  6 18:49:20 2009 +0200

downloadurl: Fix objectSetParent() on objects with versionId = 0

---

 include/downloadurl.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/downloadurl.php b/include/downloadurl.php
index 9883fc0..d4d4b03 100644
--- a/include/downloadurl.php
+++ b/include/downloadurl.php
@@ -71,7 +71,7 @@ class downloadurl
 
     public function objectSetParent($iNewId, $sClass = '')
     {
-        if($this->iVersionId)
+        if($this->iVersionId || !$this->iAppId)
             $this->iVersionId = $iNewId;
         else
             $this->iAppId = $iNewId;




More information about the wine-cvs mailing list