Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-29909 wiki: do not show groups when no groups present

  • Loading branch information...
commit b44ae5fb0a9b82729524736b79df2abbcaec36e2 1 parent 633ed1e
@mackensen mackensen authored samhemelryk committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  mod/wiki/renderer.php
View
3  mod/wiki/renderer.php
@@ -390,6 +390,9 @@ public function wiki_print_subwiki_selector($wiki, $subwiki, $page, $pagetype =
}
} else {
$group = groups_get_group($subwiki->groupid);
+ if (!$group) {
+ return;
+ }
$users = groups_get_members($subwiki->groupid);
foreach ($users as $user) {
$options[$group->id][$group->name][$group->id . '-' . $user->id] = fullname($user);
Please sign in to comment.
Something went wrong with that request. Please try again.