MDL-52055 block_online_users: Only show users from current course
authorJohn Okely <john@moodle.com>
Tue, 10 Nov 2015 04:03:11 +0000 (12:03 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 10 Nov 2015 08:13:41 +0000 (08:13 +0000)
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);