mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-10383 - groups/groupings refactoring and improvements - basic UI for groupings implemented
This commit is contained in:
parent
baea72ec48
commit
62d6383803
12 changed files with 454 additions and 196 deletions
|
@ -398,8 +398,8 @@ function build_logs_array($course, $user=0, $date=0, $order="l.time ASC", $limit
|
|||
|
||||
/// Getting all members of a group.
|
||||
if ($groupid and !$user) {
|
||||
$gusers = groups_get_members($groupid);
|
||||
if (!empty($gusers)) {
|
||||
if ($gusers = groups_get_members($groupid)) {
|
||||
$gusers = array_keys($gusers);
|
||||
$joins[] = 'l.userid IN (' . implode(',', $gusers) . ')';
|
||||
} else {
|
||||
$joins[] = 'l.userid = 0'; // No users in groups, so we want something that will always by false.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue