From 214df4ddbfb1b086ebd1b6c4b8dacac054f91298 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 19 Jan 2010 03:29:29 +0000 Subject: [PATCH] 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... --- admin/award_awards.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/admin/award_awards.php b/admin/award_awards.php index 6eb2ccc..5ab3eb1 100644 --- a/admin/award_awards.php +++ b/admin/award_awards.php @@ -979,16 +979,13 @@ $q=mysql_query("SELECT award_types.type, sponsors.organization FROM - award_awards, - award_types, - sponsors + award_awards + LEFT JOIN sponsors ON sponsors.id = award_awards.sponsors_id + LEFT JOIN award_types ON award_types.id = award_awards.award_types_id WHERE award_awards.year='{$config['FAIRYEAR']}' $where_asi $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']}' ORDER BY `$orderby`");