From d17e145158bbb720a6aa70722ad11811354cac16 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 16 Jan 2006 04:44:30 +0000 Subject: [PATCH] Only create the awards if a sponsor is selected --- admin/award_awardcreatedivisional.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/award_awardcreatedivisional.php b/admin/award_awardcreatedivisional.php index ba41c64..57bc696 100644 --- a/admin/award_awardcreatedivisional.php +++ b/admin/award_awardcreatedivisional.php @@ -56,7 +56,7 @@ $cat[$r->id]=$r->category; - if($_GET['action']=="create") + if($_GET['action']=="create" && $_GET['award_sponsors_id']) { $q=mysql_query("SELECT * FROM award_prizes WHERE year='-1' AND award_awards_id='0' ORDER BY `order`"); $prizes=array();