- Missed a year check

This commit is contained in:
dave 2007-03-19 07:49:21 +00:00
parent 4e2d7d77aa
commit cf8f539c48

View File

@ -268,7 +268,7 @@ echo "<table><tr><td>";
}
}
$q=mysql_query("SELECT * FROM projects WHERE registrations_id='".$_SESSION['registration_id']."'");
$q=mysql_query("SELECT * FROM projects WHERE registrations_id='".$_SESSION['registration_id']."' AND year='{$config['FAIRYEAR']}'");
$project=mysql_fetch_object($q);
$nominatedawards=getSpecialAwardsNominatedForProject($project->id);
$num=count($nominatedawards);