MDL-66328 groups: overview page can require lots of memory

This commit is contained in:
Tim Hunt 2019-08-05 17:11:56 +01:00
parent a672f021ea
commit f1f3101b4e

View File

@ -69,6 +69,10 @@ $strnotingroup = get_string('notingrouplist', 'group');
$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) {