From 63762543dc080e5216b4ee966d44c9b2a4aab28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Thu, 6 Aug 2009 18:49:20 +0200 Subject: [PATCH] downloadurl: Fix objectSetParent() on objects with versionId = 0 --- include/downloadurl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;