Only create the awards if a sponsor is selected

This commit is contained in:
james 2006-01-16 04:44:30 +00:00
parent 4953d2c13c
commit d17e145158

View File

@ -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();