Fix a bug that was introduced in the last upgrade that prevented the school participant invitation system from working!!

This commit is contained in:
james 2006-02-27 01:57:08 +00:00
parent d9dc85c1d7
commit 3a2186b5dd

View File

@ -99,7 +99,7 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'])
students, students,
registrations registrations
WHERE WHERE
schools_id='".$school->id."' students.schools_id='".$school->id."'
AND students.year='".$config['FAIRYEAR']."' AND students.year='".$config['FAIRYEAR']."'
AND students.registrations_id=registrations.id AND students.registrations_id=registrations.id
ORDER BY ORDER BY
@ -110,6 +110,7 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'])
{ {
echo i18n("In order for your school's students to register for the fair, you will need to invite them to register. Simply enter their email address below to invite them to register. <b>Important</b>: for group projects, only add one of the participants, that participant will then add the other group member(s) to the project"); echo i18n("In order for your school's students to register for the fair, you will need to invite them to register. Simply enter their email address below to invite them to register. <b>Important</b>: for group projects, only add one of the participants, that participant will then add the other group member(s) to the project");
echo "<br />"; echo "<br />";
echo "<br />";
$okaygrades=array(); $okaygrades=array();
if($school->projectlimitper=="total") if($school->projectlimitper=="total")
{ {
@ -142,7 +143,7 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'])
students, students,
registrations registrations
WHERE WHERE
schools_id='".$school->id."' students.schools_id='".$school->id."'
AND students.grade>='$catr->mingrade' AND students.grade>='$catr->mingrade'
AND students.grade<='$catr->maxgrade' AND students.grade<='$catr->maxgrade'
AND students.year='".$config['FAIRYEAR']."' AND students.year='".$config['FAIRYEAR']."'