forked from science-ation/science-ation
Remove redundancy
This commit is contained in:
parent
56cbd2dba5
commit
cf62c55185
@ -57,9 +57,9 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'])
|
|||||||
'".mysql_escape_string($_POST['grade'])."',
|
'".mysql_escape_string($_POST['grade'])."',
|
||||||
'".$config['FAIRYEAR']."')");
|
'".$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'])
|
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"));
|
echo happy(i18n("The participant has been successfully invited"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user