Fix a bug in the campaign target percentage display

This commit is contained in:
james 2009-10-07 22:10:52 +00:00
parent 7e559461f8
commit 2fd187e753
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;