MDL-10383 - groups/groupings refactoring and improvements - basic UI for groupings implemented

This commit is contained in:
skodak 2007-08-16 09:28:18 +00:00
parent baea72ec48
commit 62d6383803
12 changed files with 454 additions and 196 deletions

View file

@ -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.