This commit is contained in:
dave 2009-09-14 04:41:49 +00:00
parent a3f8957d96
commit 6a3eacaf9a

View File

@ -73,7 +73,7 @@ function handle_getawards(&$u, $fair, &$data, &$response)
$ids = array();
/* Load a list of awards linked to the fair id */
$q = mysql_query("SELECT * FROM fairs_awards_link WHERE fairs_id='{$fair['id']'");
$q = mysql_query("SELECT * FROM fairs_awards_link WHERE fairs_id='{$fair['id']}'");
while($r = mysql_fetch_assoc($q)) {
$aaid = $r['award_awards_id'];
if($r['download_award'] == 'yes') $ids[] = $aaid;