Skip to content

Commit

Permalink
NOBUG: Fixed minor navigation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Nov 5, 2010
1 parent 2cadd44 commit e0be5f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/navigationlib.php
Expand Up @@ -1015,7 +1015,9 @@ public function initialise() {
// course node and not populate it.
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
if ($course->id !== SITEID && !is_enrolled($coursecontext) && !has_capability('moodle/course:view', $coursecontext)) {
$coursenode->make_active();
if ($coursenode) {
$coursenode->make_active();
}
$canviewcourseprofile = false;
break;
}
Expand Down

0 comments on commit e0be5f1

Please sign in to comment.