Permalink
Browse files

[MDL-22352]

Fixing this problem.
  • Loading branch information...
Jordi Piguillem
Jordi Piguillem committed May 14, 2010
1 parent 5fd304d commit 3ca72eb7a3c380abf9ce88db40f1c23425208ed5
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/wiki/lib.php
View
@@ -438,7 +438,9 @@ function wiki_extend_navigation(navigation_node $navref, $course, $module, $cm)
return false;
}
- $gid = groups_get_activity_group($cm);
+ if (!$gid = groups_get_activity_group($cm)){
+ $gid = 0;
+ }
if (!$subwiki = wiki_get_subwiki_by_group($cm->instance, $gid, $userid)){
return null;
} else {

0 comments on commit 3ca72eb

Please sign in to comment.