forked from science-ation/science-ation
Only get the recipients list once
Oh, the last commit also fixed a couple multi-year registrationnumber uniquedness problems, as well as a few register_global dependencies
This commit is contained in:
parent
4378f966ce
commit
6d635e89f7
@ -217,14 +217,14 @@ echo mysql_Error();
|
|||||||
else
|
else
|
||||||
$projectnumber=$projectnum;
|
$projectnumber=$projectnum;
|
||||||
|
|
||||||
|
//get all students with this registration number
|
||||||
|
$recipients=getEmailRecipientsForRegistration($reg_id);
|
||||||
|
|
||||||
if($_POST['action']=="receivedyes")
|
if($_POST['action']=="receivedyes")
|
||||||
{
|
{
|
||||||
//actually set it to 'complete'
|
//actually set it to 'complete'
|
||||||
mysql_query("UPDATE registrations SET status='complete' WHERE num='$regnum' AND year='{$config['FAIRYEAR']}'");
|
mysql_query("UPDATE registrations SET status='complete' WHERE num='$regnum' AND year='{$config['FAIRYEAR']}'");
|
||||||
|
|
||||||
//get all students with this registration number
|
|
||||||
$recipients=getEmailRecipientsForRegistration($reg_id);
|
|
||||||
|
|
||||||
foreach($recipients AS $recip) {
|
foreach($recipients AS $recip) {
|
||||||
$to=$recip['to'];
|
$to=$recip['to'];
|
||||||
$subsub=array(
|
$subsub=array(
|
||||||
@ -250,9 +250,6 @@ echo mysql_Error();
|
|||||||
//actually set it to 'paymentpending'
|
//actually set it to 'paymentpending'
|
||||||
mysql_query("UPDATE registrations SET status='paymentpending' WHERE num='$regnum' AND year='{$config['FAIRYEAR']}'");
|
mysql_query("UPDATE registrations SET status='paymentpending' WHERE num='$regnum' AND year='{$config['FAIRYEAR']}'");
|
||||||
|
|
||||||
//get all students with this registration number
|
|
||||||
$recipients=getEmailRecipientsForRegistration($reg_id);
|
|
||||||
|
|
||||||
foreach($recipients AS $recip) {
|
foreach($recipients AS $recip) {
|
||||||
$to=$recip['to'];
|
$to=$recip['to'];
|
||||||
$subsub=array(
|
$subsub=array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user