THe ID of the award to delete is the key, not the value (which is always

'true').
This commit is contained in:
dave 2010-04-22 04:39:27 +00:00
parent c91e488940
commit c3fe929796

View File

@ -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))."<br />";
mysql_query("DELETE FROM award_prizes WHERE award_awards_id='$aid'");
mysql_query("DELETE FROM award_awards WHERE id='$aid'");