Avoid some warnings in the appData class

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-05-31 02:44:51 +00:00
committed by WineHQ
parent cb18a07f60
commit a2f25be661

View File

@@ -154,6 +154,9 @@ class appData
if($sQueued === false) if($sQueued === false)
$sQueued = "false"; $sQueued = "false";
$sSelectType = "";
$sLimit = "";
if(($sQueued == "true" || $sQueued == "all") && if(($sQueued == "true" || $sQueued == "all") &&
!$_SESSION['current']->hasPriv("admin")) !$_SESSION['current']->hasPriv("admin"))
{ {
@@ -271,6 +274,9 @@ class appData
if($bRejected) if($bRejected)
return FALSE; return FALSE;
$sSelectType = "";
$sLimit = "";
if($bQueued && !$_SESSION['current']->hasPriv("admin")) if($bQueued && !$_SESSION['current']->hasPriv("admin"))
{ {
$sQuery = "SELECT DISTINCT appData.* FROM appData, appMaintainers, $sQuery = "SELECT DISTINCT appData.* FROM appData, appMaintainers,