Heacy rewrite/cleanup:
[mailer.git] / inc / modules / admin / what-list_user_amounts.php
index 88f25ca9ab79bfa032a1419c54f27a723ff532dd..76491a7c9eea453eeb8d0357d51ff296c2a89b5c 100644 (file)
@@ -93,7 +93,7 @@ if (!ifSqlHasZeroNums($result)) {
        // ... and display all
        foreach ($amounts as $userid => $row) {
                // Calculate and add percentage to data array
-               $row['percents'] = $row['points'] / $totalPoints * 100;
+               $row['percents'] = calculatePercentageRate($row['points'], $totalPoints);
 
                // Load row template
                $out['rows'] .= loadTemplate('admin_list_user_amounts_row', TRUE, $row);