Permalink
Browse files

[22352]

Fixing the error.
  • Loading branch information...
Jordi Piguillem
Jordi Piguillem committed May 20, 2010
1 parent 2713c6b commit ab35d722b991503bfc6c7fc17a3fd6c54395ace9
Showing with 2 additions and 3 deletions.
  1. +2 −3 mod/wiki/renderer.php
@@ -35,9 +35,8 @@ public function page_index() {
}
// @TODO: Fix call to wiki_get_subwiki_by_group
if ($gid = groups_get_activity_group($this->page->cm)){
$gid = 0;
}
$gid = groups_get_activity_group($this->page->cm);
$gid = !empty($gid)?$gid:0;
if (!$subwiki = wiki_get_subwiki_by_group($this->page->cm->instance, $gid)) {
return false;
}

0 comments on commit ab35d72

Please sign in to comment.