From 6f22c31be317c42a71be8e6cbcc7a434ce35f194 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 31 Jan 2010 22:07:14 +0000 Subject: [PATCH] Don't show local "Download additional mateirals" link for external awards. --- admin/winners.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/winners.php b/admin/winners.php index 58ddc3c..78b824f 100644 --- a/admin/winners.php +++ b/admin/winners.php @@ -120,6 +120,7 @@ case 'award_load': award_awards.order AS awards_order, award_awards.per_fair, award_awards.external_additional_materials, + award_awards.award_source_fairs_id, award_types.type FROM award_awards , @@ -155,6 +156,7 @@ case 'edit_load': award_awards.order AS awards_order, award_awards.per_fair, award_awards.external_additional_materials, + award_awards.award_source_fairs_id, award_types.type FROM award_awards , @@ -391,6 +393,7 @@ $q=mysql_query("SELECT award_awards.order AS awards_order, award_awards.per_fair, award_awards.external_additional_materials, + award_awards.award_source_fairs_id, award_types.type, sponsors.organization FROM @@ -484,7 +487,7 @@ function print_award(&$r, $fairs_id, $editor=false, $editor_data=array()) `order`"); echo mysql_error(); - if($r['external_additional_materials'] == 1 && $editor==false) { + if($r['external_additional_materials'] == 1 && $editor==false && $r['award_source_fairs_id'] == NULL) { echo "
"; echo ""; echo "
';