screenshot: Fix objectSetParent()

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-07-23 15:23:49 +02:00
parent e9c4d2ef16
commit 62b1c7406d

View File

@@ -302,8 +302,10 @@ class screenshot
public function objectSetParent($iNewId, $sClass = '') public function objectSetParent($iNewId, $sClass = '')
{ {
$oAppData = new appData($this->iScreenshotId, null, $this); if($this->iVersionId)
return $oAppData->objectSetParent($iNewId, $sClass); $this->iVersionId = $iNewId;
else
$this->iAppId = $iNewId;
} }
function objectGetChildren($bIncludeDeleted = false) function objectGetChildren($bIncludeDeleted = false)