forked from science-ation/science-ation
Huh, odd, winners from past years, once rollover has happened, has been broken all along.. FIX IT!
This commit is contained in:
parent
30df2c8af8
commit
50dbdbf599
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user