corrected display of best grade on "index.php" when maximum grade for the HotPot is not 100
This commit is contained in:
@@ -359,7 +359,9 @@
|
||||
|
||||
// get best score
|
||||
if (is_numeric($totals[$hotpot->id]->maxscore)) {
|
||||
$bestscore = $totals[$hotpot->id]->maxscore." / $hotpot->grade";
|
||||
$weighting = $hotpot->grade / 100;
|
||||
$precision = hotpot_get_precision($hotpot);
|
||||
$bestscore = round($totals[$hotpot->id]->maxscore * $weighting, $precision)." / $hotpot->grade";
|
||||
} else {
|
||||
$bestscore = " ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user