MDL-52055 block_online_users: Only show users from current course
[moodle.git] / blocks / online_users / block_online_users.php
index d524a23..13ed51c 100644 (file)
@@ -69,8 +69,8 @@ class block_online_users extends block_base {
 
         $sitelevel = $this->page->course->id == SITEID || $this->page->context->contextlevel < CONTEXT_COURSE;
 
-        $onlineusers = new fetcher($currentgroup, $now, $timetoshowusers, $sitelevel,
-                $this->page->context, $this->page->course->id);
+        $onlineusers = new fetcher($currentgroup, $now, $timetoshowusers, $this->page->context,
+                $sitelevel, $this->page->course->id);
 
         //Calculate minutes
         $minutes  = floor($timetoshowusers/60);