From c0b592dbd1fbf532c0e8abcf005c562101b18999 Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 2 Mar 2011 20:28:20 +0000 Subject: [PATCH] A quick catch to avoid errors on checking a students registration info when they have none --- participant.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/participant.inc.php b/participant.inc.php index a1f1e7d..e5c0f08 100644 --- a/participant.inc.php +++ b/participant.inc.php @@ -318,6 +318,18 @@ function namecheckStatus($reg_id="") function participant_status_completion_details($u){ $p = getProject($u['id']); $regId = $p['registrations_id']; + if(!$regId){ + return array( + 'namecheck' => 'incomplete', + 'tour' => 'incomplete', + 'spaward' => 'incomplete', + 'safety' => 'incomplete', + 'mentor' => 'incomplete', + 'project' => 'incomplete', + 'emergencycontact' => 'incomplete', + 'student' => 'incomplete' + ); + } return array( 'namecheck' => namecheckStatus($regId), 'tour' => tourStatus($regId),