forked from science-ation/science-ation
THe ID of the award to delete is the key, not the value (which is always
'true').
This commit is contained in:
parent
c91e488940
commit
c3fe929796
@ -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'");
|
||||
|
Loading…
x
Reference in New Issue
Block a user