mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
Merge branch 'master_MDL-28962' of git://github.com/danmarsden/moodle
This commit is contained in:
commit
4a88ad2f2a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue