mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-18407 fixed dml regression
This commit is contained in:
parent
ea95cf9c05
commit
6edfb4c848
@ -45,7 +45,7 @@ if ($frm = data_submitted() and confirm_sesskey()) {
|
||||
$currentmembers = array();
|
||||
$potentialmembers = array();
|
||||
|
||||
if ($groups = $DB->get_records('groups', 'courseid', array($courseid=>'name'))) {
|
||||
if ($groups = $DB->get_records('groups', array('courseid'=>$courseid), 'name')) {
|
||||
if ($assignment = $DB->get_records('groupings_groups', array('groupingid'=>$grouping->id))) {
|
||||
foreach ($assignment as $ass) {
|
||||
$currentmembers[$ass->groupid] = $groups[$ass->groupid];
|
||||
|
Loading…
x
Reference in New Issue
Block a user