From e96bc3f9e57f13dd07a3f02074c8d5b12fa75fd3 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Wed, 27 Jul 2011 10:16:48 +0800 Subject: [PATCH] MDL-23626 Fixed bug causing course and general user activity reports to be marked active at the same time --- lib/navigationlib.php | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.36.1