Show supermaintainers names in version's page

This commit is contained in:
Jonathan Ernst
2005-02-17 01:01:01 +00:00
committed by WineHQ
parent 045679d5bb
commit 7d2505777f
2 changed files with 12 additions and 16 deletions

View File

@@ -27,20 +27,16 @@ function getAppsFromUserId($userId)
/*
* get the userIds of maintainers for this appId and versionId
*/
function getMaintainersUserIdsFromAppIdVersionId($appId, $versionId)
function getMaintainersUserIdsFromAppIdVersionId($versionId)
{
$query = "SELECT userId FROM ".
"appMaintainers WHERE appId = '$appId' " .
"AND versionId = '$versionId';";
"appMaintainers WHERE versionId = '$versionId';";
$result = query_appdb($query);
if(mysql_num_rows($result) == 0)
return; // no sub categories
$retval = array();
$c = 0;
while($row = mysql_fetch_object($result))
{
$retval[$c] = array($row->userId);
$retval[$c] = $row->userId;
$c++;
}
@@ -56,14 +52,11 @@ function getSuperMaintainersUserIdsFromAppId($appId)
"appMaintainers WHERE appId = '$appId' " .
"AND superMaintainer = '1';";
$result = query_appdb($query);
if(!$result || mysql_num_rows($result) == 0)
return; // no sub categories
$retval = array();
$c = 0;
while($row = mysql_fetch_object($result))
{
$retval[$c] = array($row->userId);
$retval[$c] = $row->userId;
$c++;
}