A quick catch to avoid errors on checking a students registration info when they have none

This commit is contained in:
jacob 2011-03-02 20:28:20 +00:00
parent 44ac9e6640
commit c0b592dbd1

View File

@ -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),