From a809f800875c237ed5fde0c19fc810b1ec8423c0 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 22 Apr 2010 05:09:48 +0000 Subject: [PATCH] Also delete the division and category linkage --- admin/award_download.php | 3 +++ 1 file changed, 3 insertions(+) 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 "";