Move getMaintainersUserIds...() to version::getMaintainersUserIds() and fixup callers of this function
This commit is contained in:
@@ -3,30 +3,6 @@
|
||||
/* functions for maintainers */
|
||||
/*****************************/
|
||||
|
||||
/*
|
||||
* get the userIds of maintainers for a versionId
|
||||
*/
|
||||
function getMaintainersUserIdsFromAppIdVersionId($versionId)
|
||||
{
|
||||
$retval = array();
|
||||
|
||||
/* early out if the versionId isn't valid */
|
||||
if($versionId == 0)
|
||||
return $retval;
|
||||
|
||||
$sQuery = "SELECT userId FROM ".
|
||||
"appMaintainers WHERE versionId = '?';";
|
||||
$hResult = query_parameters($sQuery, $versionId);
|
||||
$c = 0;
|
||||
while($oRow = mysql_fetch_object($hResult))
|
||||
{
|
||||
$retval[$c] = $oRow->userId;
|
||||
$c++;
|
||||
}
|
||||
|
||||
return $retval;
|
||||
}
|
||||
|
||||
/*
|
||||
* get the userIds of super maintainers for this appId
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user