forked from science-ation/science-ation
Fix a bug in the campaign target percentage display
This commit is contained in:
parent
7e559461f8
commit
2fd187e753
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user