Permalink
Browse files

Group overview displays incorrect user count

When there are no users in a group, the count displays
as 1 - MDL-16705
  • Loading branch information...
1 parent 9f9539b commit 776f1020c9bac1906e76bf8b2486d3a82ba3efe6 poltawski committed Oct 2, 2008
Showing with 3 additions and 1 deletion.
  1. +3 −1 group/overview.php
View
@@ -92,7 +92,9 @@
if (!array_key_exists($row->groupid, $members[$row->groupingid])) {
$members[$row->groupingid][$row->groupid] = array();
}
- $members[$row->groupingid][$row->groupid][] = $user;
+ if(isset($user->id)){
+ $members[$row->groupingid][$row->groupid][] = $user;
+ }
}
rs_close($rs);
}

0 comments on commit 776f102

Please sign in to comment.