From 0d6c0610c32245d1f2b9b21d58eb1f8953b6710e Mon Sep 17 00:00:00 2001 From: james Date: Wed, 14 Oct 2009 16:17:49 +0000 Subject: [PATCH] Fix a bug causing donations to not show up --- admin/fundraising_campaigns.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/fundraising_campaigns.php b/admin/fundraising_campaigns.php index 162386ed..94b6601e 100644 --- a/admin/fundraising_campaigns.php +++ b/admin/fundraising_campaigns.php @@ -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 "".format_date($r->datereceived)."\n"; echo " ".$sponsor->organization."\n"; echo " ".$goal->name."\n";