Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 854a3741bc047b3d3bb7b344973e122af8edbcff 1 parent 37699ac
Charles Fulton mackensen authored samhemelryk committed

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  mod/wiki/renderer.php
3  mod/wiki/renderer.php
@@ -390,6 +390,9 @@ public function wiki_print_subwiki_selector($wiki, $subwiki, $page, $pagetype =
390 390 }
391 391 } else {
392 392 $group = groups_get_group($subwiki->groupid);
  393 + if (!$group) {
  394 + return;
  395 + }
393 396 $users = groups_get_members($subwiki->groupid);
394 397 foreach ($users as $user) {
395 398 $options[$group->id][$group->name][$group->id . '-' . $user->id] = fullname($user);

0 comments on commit 854a374

Please sign in to comment.
Something went wrong with that request. Please try again.