Permalink
Browse files

MDL-23626 Fixed bug causing course and general user activity reports …

…to be marked active at the same time
  • Loading branch information...
1 parent 6f05796 commit e96bc3f9e57f13dd07a3f02074c8d5b12fa75fd3 Sam Hemelryk committed Jul 27, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/navigationlib.php
@@ -1824,6 +1824,9 @@ protected function load_for_user($user=null, $forceforcontext=false) {
if ($iscurrentuser && !$forceforcontext) {
// If it's the current user the information will go under the profile root node
$usernode = $this->rootnodes['myprofile'];
+ $course = get_site();
+ $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
+ $issitecourse = true;
} else {
if (!$issitecourse) {
// Not the current user so add it to the participants node for the current course

0 comments on commit e96bc3f

Please sign in to comment.