From: Sam Hemelryk Date: Wed, 27 Jul 2011 02:16:48 +0000 (+0800) Subject: MDL-23626 Fixed bug causing course and general user activity reports to be marked... X-Git-Tag: v2.2.0-beta~601^2 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=e96bc3f9e57f13dd07a3f02074c8d5b12fa75fd3 MDL-23626 Fixed bug causing course and general user activity reports to be marked active at the same time --- diff --git a/lib/navigationlib.php b/lib/navigationlib.php index c76963bb50b..01929e590fd 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -1824,6 +1824,9 @@ class global_navigation extends navigation_node { 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