diff --git a/admin/judges_teams_projects.php b/admin/judges_teams_projects.php index e1b097f9..10a39863 100644 --- a/admin/judges_teams_projects.php +++ b/admin/judges_teams_projects.php @@ -238,15 +238,28 @@ if( ($action=="edit" || $action=="assign" ) && $edit) echo mysql_error(); $eligibleprojects=getProjectsEligibleForAwards($award_ids); - echo nl2br(print_r($eligibleprojects,true)); - - $numprojects=mysql_num_rows($pq); + //the keys are the project numbers, so lets get an array of those too so we can use in_array below + $eligibleprojectsnumbers=array_keys($eligibleprojects); +// echo nl2br(print_r($eligibleprojects,true)); + $numprojects=0; echo ""; echo "";