Skip to content
Browse files

MDL-7571 - shuffles 'mode' before displaying, merged from MOODLE_18_S…

…TABLE
  • Loading branch information...
1 parent 4fc304c commit 4497e89c9fca7070ada9c53b9614d53e7712084d arborrow committed Jul 4, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 grade/lib.php
View
1 grade/lib.php
@@ -1594,6 +1594,7 @@ function grade_get_stats($category='all') {
// returns a comma seperated list of the most common values in $items, $items is expected to be a comma sperated list of numbers
function grade_mode($items) {
$all_scores = explode(',',$items);
+ shuffle($all_scores); //MDL-7571 - shuffle scores
foreach($all_scores as $value) {
if (isset($frequency[$value])) {
$frequency[$value]++;

0 comments on commit 4497e89

Please sign in to comment.
Something went wrong with that request. Please try again.