diff --git a/admin/award_awardcreatedivisional.php b/admin/award_awardcreatedivisional.php index b49d39d..e442aff 100644 --- a/admin/award_awardcreatedivisional.php +++ b/admin/award_awardcreatedivisional.php @@ -32,8 +32,8 @@ 'Awards Main' => 'admin/awards.php') ); - if($_GET['award_sponsors_id']) $award_sponsors_id=$_GET['award_sponsors_id']; - else if($_POST['award_sponsors_id']) $award_sponsors_id=$_POST['award_sponsors_id']; + if($_GET['sponsors_id']) $sponsors_id=$_GET['sponsors_id']; + else if($_POST['sponsors_id']) $sponsors_id=$_POST['sponsors_id']; if($_GET['award_types_id']) $award_types_id=$_GET['award_types_id']; else if($_POST['award_types_id']) $award_types_id=$_POST['award_types_id']; @@ -77,7 +77,7 @@ } - if($_GET['action']=="create" && $_GET['award_sponsors_id']) + if($_GET['action']=="create" && $_GET['sponsors_id']) { $q=mysql_query("SELECT * FROM award_prizes WHERE year='-1' AND award_awards_id='0' ORDER BY `order`"); $prizes=array(); @@ -106,8 +106,8 @@ $c_category=$cat[$c_id]; echo i18n("Creating %1 - %2",array($c_category,$d_division)).""; - mysql_query("INSERT INTO award_awards (award_sponsors_id,award_types_id,name,criteria,`order`,year) VALUES ( - '{$_GET['award_sponsors_id']}', + mysql_query("INSERT INTO award_awards (sponsors_id,award_types_id,name,criteria,`order`,year) VALUES ( + '{$_GET['sponsors_id']}', '1', '$c_category - $d_division', '".i18n("Best %1 projects in the %2 division",array($c_category,$d_division))."', @@ -157,13 +157,13 @@ echo "