Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…x - thanks to Patrick Gagnon for report and fix.
  • Loading branch information...
commit 5375c60ad416221b1141c338f57c949354a794d8 1 parent 4f36324
Dan Marsden authored August 17, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  enrol/imsenterprise/lib.php
2  enrol/imsenterprise/lib.php
@@ -645,7 +645,7 @@ function process_membership_tag($tagcontents){
645 645
                         if(isset($groupids[$member->groupname])) {
646 646
                             $member->groupid = $groupids[$member->groupname]; // Recall the group ID from cache if available
647 647
                         } else {
648  
-                            if($groupid = $DB->get_field('groups', 'id', 'name', $member->groupname, array('courseid'=>$ship->courseid))){
  648
+                            if($groupid = $DB->get_field('groups', 'id', array('courseid'=>$ship->courseid, 'name'=>$member->groupname))){ 
649 649
                                 $member->groupid = $groupid;
650 650
                                 $groupids[$member->groupname] = $groupid; // Store ID in cache
651 651
                             } else {

0 notes on commit 5375c60

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