forked from science-ation/science-ation
mentors are also incomplete if we have less than we say we're gonna have
This commit is contained in:
parent
04dcd31b6a
commit
0d365bc731
@ -181,26 +181,26 @@ function mentorStatus($reg_id="")
|
|||||||
if($r->nummentors==null)
|
if($r->nummentors==null)
|
||||||
return "incomplete";
|
return "incomplete";
|
||||||
|
|
||||||
|
//grab all the mentors for this registration
|
||||||
$q=mysql_query("SELECT * FROM mentors WHERE registrations_id='$rid' AND conferences_id='".$conference['id']."'");
|
$q=mysql_query("SELECT * FROM mentors WHERE registrations_id='$rid' AND conferences_id='".$conference['id']."'");
|
||||||
|
|
||||||
//if we dont have the minimum, return incomplete
|
//if we dont have the minimum, return incomplete
|
||||||
if(mysql_num_rows($q)<$config['minmentorserproject'])
|
if(mysql_num_rows($q)<$config['minmentorserproject'])
|
||||||
return "incomplete";
|
return "incomplete";
|
||||||
|
|
||||||
while($r=mysql_fetch_object($q))
|
//and if we have less than they say we're gonna have, we're also incomplete
|
||||||
{
|
if(mysql_num_rows($q)<$r->nummentors)
|
||||||
foreach ($required_fields AS $req)
|
return "incomplete";
|
||||||
{
|
|
||||||
if(!$r->$req)
|
while($r=mysql_fetch_object($q)) {
|
||||||
{
|
foreach ($required_fields AS $req) {
|
||||||
|
if(!$r->$req) {
|
||||||
return "incomplete";
|
return "incomplete";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//if it made it through without returning incomplete, then we must be complete
|
//if it made it through without returning incomplete, then we must be complete
|
||||||
return "complete";
|
return "complete";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function safetyStatus($reg_id="")
|
function safetyStatus($reg_id="")
|
||||||
|
Loading…
Reference in New Issue
Block a user