Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'm20_MDL-28962' of git://github.com/danmarsden/moodle in…

…to MOODLE_20_STABLE
  • Loading branch information...
commit d3ff99e7457f7fc8eb51a7961cb23ff40825bf8e 2 parents 91d77b1 + feb6542
@stronk7 stronk7 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  enrol/imsenterprise/lib.php
View
2  enrol/imsenterprise/lib.php
@@ -645,7 +645,7 @@ function process_membership_tag($tagcontents){
if(isset($groupids[$member->groupname])) {
$member->groupid = $groupids[$member->groupname]; // Recall the group ID from cache if available
} else {
- if($groupid = $DB->get_field('groups', 'id', 'name', $member->groupname, array('courseid'=>$ship->courseid))){
+ if($groupid = $DB->get_field('groups', 'id', array('courseid'=>$ship->courseid, 'name'=>$member->groupname))){
$member->groupid = $groupid;
$groupids[$member->groupname] = $groupid; // Store ID in cache
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.