From 06dae789923c2e24a23174665473815318e3281c Mon Sep 17 00:00:00 2001 From: james Date: Tue, 24 Jan 2006 14:30:38 +0000 Subject: [PATCH] Fixed a bug that prevented students from logging back in to view their forms once the forms were marked as complete --- register_participants.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/register_participants.php b/register_participants.php index d9d7a08..4649fd6 100644 --- a/register_participants.php +++ b/register_participants.php @@ -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 registration number in order to continue your registration"); + echo i18n("Please enter your registration number in order to login"); echo ""; $allownew=false; echo "
"; } 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") {