appdb/. appview.php
WineHQ
wineowner at wine.codeweavers.com
Thu Aug 23 22:17:25 CDT 2007
ChangeSet ID: 31342
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2007/08/23 22:17:25
Modified files:
. : appview.php
Log message:
Chris Morgan <cmorgan at alum.wpi.edu>
Create a version instance from $aClean['iVersionId'], if $aClean['iVersionId'] is set. We use
this version instance in several sets of logic. Fixes bug 9275.
Patch: http://cvs.winehq.org/patch.py?id=31342
Old revision New revision Changes Path
1.103 1.104 +5 -0 appdb/appview.php
Index: appdb/appview.php
diff -u -p appdb/appview.php:1.103 appdb/appview.php:1.104
--- appdb/appview.php:1.103 24 Aug 2007 3:17:25 -0000
+++ appdb/appview.php 24 Aug 2007 3:17:25 -0000
@@ -76,6 +76,11 @@ if(empty($aClean['iAppId']) && empty($aC
if (isset($aClean['sSub']))
{
+ // create the version object if iVersionId is set
+ // we use this version object in many of the below cases
+ if(isset($aClean['iVersionId']))
+ $oVersion = new Version($aClean['iVersionId']);
+
if(($aClean['sSub'] == 'delete' ) && ($aClean['iBuglinkId']))
{
if(($_SESSION['current']->hasPriv("admin") ||
More information about the wine-cvs
mailing list