Module: appdb Branch: master Commit: 63762543dc080e5216b4ee966d44c9b2a4aab28b URL: http://source.winehq.org/git/appdb.git/?a=commit;h=63762543dc080e5216b4ee966...
Author: Alexander Nicolaysen Sørnes alex@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;