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;