From acbd76aa03358bdada71b5559ba8b45f5e54dd75 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 4 Mar 2011 01:32:52 +0000 Subject: [PATCH] FIx missing numstudents in project object --- register_participants.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/register_participants.inc.php b/register_participants.inc.php index 44c056c..598cfff 100644 --- a/register_participants.inc.php +++ b/register_participants.inc.php @@ -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;