From c3fe92979650d47a36b51e33fc68a9a06f5aff60 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 22 Apr 2010 04:39:27 +0000 Subject: [PATCH] THe ID of the award to delete is the key, not the value (which is always 'true'). --- admin/award_download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/award_download.php b/admin/award_download.php index 6de8f716..73caca66 100644 --- a/admin/award_download.php +++ b/admin/award_download.php @@ -229,7 +229,7 @@ case 'check': //remove any awards that are left in the $existingawards array, they must have been removed from the source - foreach($existingawards AS $aid) { + 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'");