diff --git a/admin/award_download.php b/admin/award_download.php index 73caca6..f87305c 100644 --- a/admin/award_download.php +++ b/admin/award_download.php @@ -231,8 +231,11 @@ case 'check': //remove any awards that are left in the $existingawards array, they must have been removed from the source foreach($existingawards AS $aid=>$val) { echo i18n("Removing award id %1 that was removed from external source",array($aid))."
"; + mysql_query("DELETE FROM award_prizes WHERE award_awards_id='$aid'"); mysql_query("DELETE FROM award_awards WHERE id='$aid'"); + mysql_query("DELETE FROM award_awards_projectcategories WHERE award_awards_id='$aid'"); + mysql_query("DELETE FROM award_awards_projectdivisions WHERE award_awards_id='$aid'"); } echo "";