FIx missing numstudents in project object

This commit is contained in:
james 2011-03-04 01:32:52 +00:00
parent 9efd7d89f9
commit acbd76aa03

View File

@ -568,9 +568,10 @@ function getProject($userId){
$returnval = mysql_fetch_assoc($q);
}
$q=mysql_query("SELECT nummentors FROM registrations WHERE id='$regId'");
$q=mysql_query("SELECT nummentors,numstudents FROM registrations WHERE id='$regId'");
$r=mysql_fetch_assoc($q);
$returnval['nummentors']=$r['nummentors'];
$returnval['numstudents']=$r['numstudents'];
$safetyquestions=getSafetyQuestions($regId);
$returnval['safetyquestions']=$safetyquestions;