Module: appdb Branch: master Commit: 8b5231005116e39773afbcb82e8ec59d6b49db62 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=8b5231005116e39773afbcb82...
Author: Alexander Nicolaysen Sørnes alex@thehandofagony.com Date: Wed Oct 31 11:00:42 2007 +0100
screenshot: Fully initialize appData object in canEdit()
---
include/screenshot.php | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/include/screenshot.php b/include/screenshot.php index 81eec26..bf2000a 100644 --- a/include/screenshot.php +++ b/include/screenshot.php @@ -606,9 +606,7 @@ class screenshot { if($this) { - $oAppData = new appData(); - $oAppData->iVersionId = $this->iVersionId; - $oAppData->iAppId = NULL; + $oAppData = new appData($this->objectGetId(), null, $this); return $oAppData->canEdit(); } else return appData::canEdit();