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