Also delete the division and category linkage

This commit is contained in:
dave 2010-04-22 05:09:48 +00:00
parent c3fe929796
commit a809f80087

View File

@ -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))."<br />";
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 "</i>";