corrected display of best grade on "index.php" when maximum grade for the HotPot is not 100

This commit is contained in:
gbateson
2006-10-02 00:30:32 +00:00
parent 1387c879d5
commit a8fdaa5c38
+3 -1
View File
@@ -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 = " ";
}