mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
"MDL-25175, fixed groups_get_group parameter"
This commit is contained in:
parent
a207b735a2
commit
b160915d6b
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ require_capability('mod/chat:chat', $context);
|
||||||
/// Check to see if groups are being used here
|
/// Check to see if groups are being used here
|
||||||
if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used
|
if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used
|
||||||
if ($groupid = groups_get_activity_group($cm)) {
|
if ($groupid = groups_get_activity_group($cm)) {
|
||||||
if (!$group = groups_get_group($groupid, false)) {
|
if (!$group = groups_get_group($groupid)) {
|
||||||
print_error('invalidgroupid');
|
print_error('invalidgroupid');
|
||||||
}
|
}
|
||||||
$groupname = ': '.$group->name;
|
$groupname = ': '.$group->name;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue