forked from science-ation/science-ation
Fix a bug where awards that didtn have a sponsor set didnt show up in the list, also, do the same for award types, though award types hsould never be empty...
This commit is contained in:
parent
c67488d375
commit
214df4ddbf
@ -979,16 +979,13 @@ $q=mysql_query("SELECT
|
|||||||
award_types.type,
|
award_types.type,
|
||||||
sponsors.organization
|
sponsors.organization
|
||||||
FROM
|
FROM
|
||||||
award_awards,
|
award_awards
|
||||||
award_types,
|
LEFT JOIN sponsors ON sponsors.id = award_awards.sponsors_id
|
||||||
sponsors
|
LEFT JOIN award_types ON award_types.id = award_awards.award_types_id
|
||||||
WHERE
|
WHERE
|
||||||
award_awards.year='{$config['FAIRYEAR']}'
|
award_awards.year='{$config['FAIRYEAR']}'
|
||||||
$where_asi
|
$where_asi
|
||||||
$where_ati
|
$where_ati
|
||||||
$where_asc
|
|
||||||
AND award_awards.sponsors_id=sponsors.id
|
|
||||||
AND award_awards.award_types_id=award_types.id
|
|
||||||
AND award_types.year='{$config['FAIRYEAR']}'
|
AND award_types.year='{$config['FAIRYEAR']}'
|
||||||
ORDER BY `$orderby`");
|
ORDER BY `$orderby`");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user