Fix a bug causing donations to not show up

This commit is contained in:
james 2009-10-14 16:17:49 +00:00
parent 547d30d490
commit 0d6c0610c3

@ -215,8 +215,8 @@ switch($_GET['action']){
AND status='received' ORDER BY datereceived DESC");
while($r=mysql_fetch_object($q)) {
$goal=getGoal($r->fundraising_goal);
$q=mysql_query("SELECT * FROM sponsors WHERE id='{$r->sponsors_id}'");
$sponsor=mysql_fetch_object($q);
$sq=mysql_query("SELECT * FROM sponsors WHERE id='{$r->sponsors_id}'");
$sponsor=mysql_fetch_object($sq);
echo "<tr><td>".format_date($r->datereceived)."</td>\n";
echo " <td>".$sponsor->organization."</td>\n";
echo " <td>".$goal->name."</td>\n";