forked from science-ation/science-ation
Only download awards from the specified year
This commit is contained in:
parent
6242b9ef5e
commit
6fa1c6d266
@ -79,8 +79,8 @@ function handle_getawards(&$u, $fair, &$data, &$response)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Load the awards this fair is allowed to download */
|
/* Load the awards this fair is allowed to download */
|
||||||
$where = "id='".join("' OR id='", $ids)."'";
|
$where = "(id='".join("' OR id='", $ids)."')";
|
||||||
$q = mysql_query("SELECT * FROM award_awards WHERE $where" );
|
$q = mysql_query("SELECT * FROM award_awards WHERE $where AND year='$year'" );
|
||||||
|
|
||||||
while($a = mysql_fetch_assoc($q)) {
|
while($a = mysql_fetch_assoc($q)) {
|
||||||
$award = array();
|
$award = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user