mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-28962 enrol imsenterprise - incorrect conversion of new dml syntax - thanks to Patrick Gagnon for report and fix.
This commit is contained in:
parent
4f3632441a
commit
5375c60ad4
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user