Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-7571 - shuffles 'mode' before displaying, merged from 18STABLE

  • Loading branch information...
commit 1e5575ae9ed38fa55d26d172f42bed4dd7490b6e 1 parent 41f7e89
arborrow authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  grade/lib.php
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])) {
Please sign in to comment.
Something went wrong with that request. Please try again.