Skip to content
Browse files

MDL-28962 enrol imsenterprise - incorrect conversion of new dml synta…

…x - thanks to Patrick Gagnon for report and fix.
  • Loading branch information...
1 parent 9e47a85 commit feb6542872b8370a088cd948301c719fe4043967 @danmarsden danmarsden committed
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 {

0 comments on commit feb6542

Please sign in to comment.
Something went wrong with that request. Please try again.