forked from science-ation/science-ation
Also delete the division and category linkage
This commit is contained in:
parent
c3fe929796
commit
a809f80087
@ -231,8 +231,11 @@ case 'check':
|
|||||||
//remove any awards that are left in the $existingawards array, they must have been removed from the source
|
//remove any awards that are left in the $existingawards array, they must have been removed from the source
|
||||||
foreach($existingawards AS $aid=>$val) {
|
foreach($existingawards AS $aid=>$val) {
|
||||||
echo i18n("Removing award id %1 that was removed from external source",array($aid))."<br />";
|
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_prizes WHERE award_awards_id='$aid'");
|
||||||
mysql_query("DELETE FROM award_awards WHERE 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>";
|
echo "</i>";
|
||||||
|
Loading…
Reference in New Issue
Block a user