Permalink
Browse files

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

…to MOODLE_20_STABLE
  • Loading branch information...
2 parents 91d77b1 + feb6542 commit d3ff99e7457f7fc8eb51a7961cb23ff40825bf8e @stronk7 stronk7 committed Aug 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 d3ff99e

Please sign in to comment.