Fixed a bug that prevented students from logging back in to view their forms once the forms were marked as complete

This commit is contained in:
james 2006-01-24 14:30:38 +00:00
parent 1585fdb3e6
commit 06dae78992

View File

@ -166,20 +166,24 @@
students.email='".$_SESSION['email']."'
AND students.year=".$config['FAIRYEAR']."
AND registrations.year=".$config['FAIRYEAR']."
AND registrations.status='open'
AND
( registrations.status='open'
OR registrations.status='paymentpending'
OR registrations.status='complete'
)
AND students.registrations_id=registrations.id");
if(mysql_num_rows($q)>0)
{
$r=mysql_fetch_object($q);
// print_r($r);
echo i18n("Please enter your <b>registration number</b> in order to continue your registration");
echo i18n("Please enter your <b>registration number</b> in order to login");
echo "<input type=\"hidden\" name=\"action\" value=\"continue\">";
$allownew=false;
echo "<br />";
}
else
{
//they dont have a 'new' and they dont have an 'open' so that means that they want to create a new one... BUT...
//they dont have a 'new' and they dont have an 'open/paymentpending/complete' so that means that they want to create a new one... BUT...
if($config['participant_registration_type']=="invite")
{