diff --git a/admin/fair_stats.php b/admin/fair_stats.php index e0863f5d..4d637886 100644 --- a/admin/fair_stats.php +++ b/admin/fair_stats.php @@ -135,15 +135,16 @@ echo "
"; $q=mysql_query("SELECT * FROM fairs WHERE `type`='sfiab' OR `type`='ysc'"); - echo ""; echo "\n"; while($r=mysql_fetch_object($q)) { if($fairs_id==$r->id) $sel="selected=\"selected\""; else $sel=""; echo "\n"; } + echo "\n"; $q=mysql_query("SELECT DISTINCT(year) AS year FROM config WHERE year>0 ORDER BY year"); - echo ""; echo "\n"; while($r=mysql_fetch_object($q)) { if($year==$r->year) $sel="selected=\"selected\""; else $sel="";