From 2fd187e7535dc62c4d5c04e15823bb3dabcd9c2f Mon Sep 17 00:00:00 2001 From: james Date: Wed, 7 Oct 2009 22:10:52 +0000 Subject: [PATCH] Fix a bug in the campaign target percentage display --- admin/fundraising.php | 2 +- admin/fundraising_campaigns.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/fundraising.php b/admin/fundraising.php index 61412c9..4e22999 100644 --- a/admin/fundraising.php +++ b/admin/fundraising.php @@ -99,7 +99,7 @@ $q=mysql_query("SELECT * FROM fundraising_goals WHERE fiscalyear='{$config['FISC echo mysql_error(); $recr=mysql_fetch_object($recq); $received=$recr->received; - if($r->budget) + if($r->target) $percent=round($received/$r->target*100,1); else $percent=0; diff --git a/admin/fundraising_campaigns.php b/admin/fundraising_campaigns.php index afb1ec5..b244fa4 100644 --- a/admin/fundraising_campaigns.php +++ b/admin/fundraising_campaigns.php @@ -99,7 +99,7 @@ switch($_GET['action']){ echo mysql_error(); $recr=mysql_fetch_object($recq); $received=$recr->received; - if($r->budget) + if($r->target) $percent=round($received/$r->target*100,1); else $percent=0;