Skip to content

Commit

Permalink
MDL-12249 fixed distribution for small groups; merged from MOODLE_19_…
Browse files Browse the repository at this point in the history
…STABLE
  • Loading branch information
skodak committed Nov 19, 2007
1 parent 9509119 commit 0112ed8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion group/autogroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@
// If there would be one group with a small number of member reduce the number of groups
$missing = $userpergrp * $numgrps - $usercnt;
if ($missing > $userpergrp * (1-AUTOGROUP_MIN_RATIO)) {
// spread the users from the last small group
$numgrps--;
$userpergrp = ceil($usercnt/$numgrps);
$userpergrp = floor($usercnt/$numgrps);
}
}
}
Expand Down

0 comments on commit 0112ed8

Please sign in to comment.