Huh, odd, winners from past years, once rollover has happened, has been broken all along.. FIX IT!

This commit is contained in:
james 2007-10-05 19:20:09 +00:00
parent 30df2c8af8
commit 50dbdbf599

View File

@ -38,15 +38,20 @@ if($_GET['year'] && $_GET['type'])
echo "<h2>".i18n("%1 %2 Award Winners",array($_GET['year'],$_GET['type']))."</h2>";
$year=$_GET['year'];
$ok=true;
//first, lets make sure someone isnt tryint to see something that they arent allowed to!
//but only if the year they want is the FAIRYEAR. If they want a past year, thats cool
if($_GET['year']>=$config['FAIRYEAR']) {
$q=mysql_query("SELECT (NOW()>'".$config['dates']['postwinners']."') AS test");
$r=mysql_fetch_object($q);
if($r->test!=1)
{
echo error(i18n("Crystal ball says future is very hard to see!"));
$ok=false;
}
else
}
if($ok)
{
$q=mysql_query("SELECT