Remove redundancy

This commit is contained in:
dave 2010-01-28 08:34:35 +00:00
parent 56cbd2dba5
commit cf62c55185

View File

@ -57,9 +57,9 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'])
'".mysql_escape_string($_POST['grade'])."',
'".$config['FAIRYEAR']."')");
email_send("new_participant",$_POST['email'],array("FAIRNAME"=>i18n($config['fairname'])),array("REGNUM"=>$regnum, "FAIRNAME"=>i18n($config['fairname']),"EMAIL"=>$_POST['email']));
email_send("new_participant",$_POST['email'],array(),array("REGNUM"=>$regnum, "EMAIL"=>$_POST['email']));
if($_POST['emailcontact'])
email_send("new_participant",$_POST['emailcontact'],array("FAIRNAME"=>i18n($config['fairname'])),array("REGNUM"=>$regnum, "FAIRNAME"=>i18n($config['fairname']),"EMAIL"=>$_POST['email']));
email_send("new_participant",$_POST['emailcontact'],array(),array("REGNUM"=>$regnum, "EMAIL"=>$_POST['email']));
echo happy(i18n("The participant has been successfully invited"));
}
}