getMaintainersUserIdsFromAppIdVersionId() shouldn't return all supermaintainers when passed a versionId of 0
This commit is contained in:
@@ -29,10 +29,15 @@ function getAppsFromUserId($userId)
|
|||||||
*/
|
*/
|
||||||
function getMaintainersUserIdsFromAppIdVersionId($versionId)
|
function getMaintainersUserIdsFromAppIdVersionId($versionId)
|
||||||
{
|
{
|
||||||
|
$retval = array();
|
||||||
|
|
||||||
|
/* early out if the versionId isn't valid */
|
||||||
|
if($versionId == 0)
|
||||||
|
return $retval;
|
||||||
|
|
||||||
$query = "SELECT userId FROM ".
|
$query = "SELECT userId FROM ".
|
||||||
"appMaintainers WHERE versionId = '$versionId';";
|
"appMaintainers WHERE versionId = '$versionId';";
|
||||||
$result = query_appdb($query);
|
$result = query_appdb($query);
|
||||||
$retval = array();
|
|
||||||
$c = 0;
|
$c = 0;
|
||||||
while($row = mysql_fetch_object($result))
|
while($row = mysql_fetch_object($result))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user