Only show fairs in the fair upload stats that have enable_stats turned on

This commit is contained in:
james 2010-03-30 17:01:27 +00:00
parent 80ff166203
commit c238997eed

View File

@ -134,7 +134,7 @@
echo "<form name=\"fairselect\" action=\"$PHPSELF\" method=\"get\">"; echo "<form name=\"fairselect\" action=\"$PHPSELF\" method=\"get\">";
$q=mysql_query("SELECT * FROM fairs WHERE `type`='sfiab' OR `type`='ysc'"); $q=mysql_query("SELECT * FROM fairs WHERE `type`='sfiab' OR `type`='ysc' AND enable_stats='yes'");
echo "<select name=\"id\">"; echo "<select name=\"id\">";
echo "<option value=\"\">".i18n("Choose a destination")."</option>\n"; echo "<option value=\"\">".i18n("Choose a destination")."</option>\n";
while($r=mysql_fetch_object($q)) { while($r=mysql_fetch_object($q)) {