Permalink
Browse files

MDL-30543 navigation: Added missing course variable for user context

  • Loading branch information...
1 parent d0e016f commit 50d15ca47f8be2d485bc60b0c263775e98616a29 Sam Hemelryk committed Dec 1, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/navigationlib.php
View
@@ -1216,6 +1216,7 @@ public function initialise() {
}
break;
case CONTEXT_USER :
+ $course = $this->page->course;
if ($showcategories && !$ismycourse) {
$this->load_all_categories($course->category, $showcategories);
}

0 comments on commit 50d15ca

Please sign in to comment.