Skip to content

Commit

Permalink
Merge branch 'MDL-66328' of https://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Sep 11, 2019
2 parents 20cc24e + f1f3101 commit 5f6ac20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions group/overview.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
$strnogroup = get_string('nogroup', 'group');
$strnogrouping = get_string('nogrouping', 'group');

// This can show all users and all groups in a course.
// This is lots of data so allow this script more resources.
raise_memory_limit(MEMORY_EXTRA);

// Get all groupings and sort them by formatted name.
$groupings = $DB->get_records('groupings', array('courseid'=>$courseid), 'name');
foreach ($groupings as $gid => $grouping) {
Expand Down

0 comments on commit 5f6ac20

Please sign in to comment.