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

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-08-06 18:49:20 +02:00
parent 19c34f5f2e
commit 63762543dc

View File

@@ -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;