mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Merge branch 'MDL-53780' of https://github.com/bostelm/moodle
This commit is contained in:
commit
ffce908869
@ -2226,11 +2226,7 @@ class assign {
|
||||
public function get_submission_group_members($groupid, $onlyids, $excludesuspended = false) {
|
||||
$members = array();
|
||||
if ($groupid != 0) {
|
||||
if ($onlyids) {
|
||||
$allusers = groups_get_members($groupid, 'u.id');
|
||||
} else {
|
||||
$allusers = groups_get_members($groupid);
|
||||
}
|
||||
$allusers = $this->list_participants($groupid, $onlyids);
|
||||
foreach ($allusers as $user) {
|
||||
if ($this->get_submission_group($user->id)) {
|
||||
$members[] = $user;
|
||||
|
Loading…
x
Reference in New Issue
Block a user