forked from science-ation/science-ation
A quick catch to avoid errors on checking a students registration info when they have none
This commit is contained in:
parent
44ac9e6640
commit
c0b592dbd1
@ -318,6 +318,18 @@ function namecheckStatus($reg_id="")
|
|||||||
function participant_status_completion_details($u){
|
function participant_status_completion_details($u){
|
||||||
$p = getProject($u['id']);
|
$p = getProject($u['id']);
|
||||||
$regId = $p['registrations_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(
|
return array(
|
||||||
'namecheck' => namecheckStatus($regId),
|
'namecheck' => namecheckStatus($regId),
|
||||||
'tour' => tourStatus($regId),
|
'tour' => tourStatus($regId),
|
||||||
|
Loading…
Reference in New Issue
Block a user