Add notify messages to editAppFamily

This commit is contained in:
Tony Lambregts
2005-01-08 18:28:32 +00:00
committed by WineHQ
parent 5cad791b03
commit 1d26c64a9a
4 changed files with 154 additions and 14 deletions

View File

@@ -374,15 +374,17 @@ function UserWantsEmail($userid)
/**
* get the email address of people to notify for this appId and versionId
*/
function getNotifyEmailAddressList($appId, $versionId)
function getNotifyEmailAddressList($appId, $versionId = 0)
{
$aUserId = array();
$c = 0;
$retval = "";
if ($versionId == 0)
$sWhere = "appId = ".$appId;
else
$sWhere = "appId = ".$appId." AND versionId = ".$versionId;
$query = "SELECT userId FROM ".
"appMaintainers WHERE appId = '$appId' " .
"AND versionId = '$versionId';";
$query = "SELECT userId FROM appMaintainers WHERE ".$sWhere.";";
$result = mysql_query($query);
if(mysql_num_rows($result) > 0)
{