Skip to content

Commit

Permalink
MDL-52055 block_online_users: Only show users from current course
Browse files Browse the repository at this point in the history
  • Loading branch information
John Okely authored and danpoltawski committed Nov 10, 2015
1 parent f62d6ff commit 32b4161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/online_users/block_online_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ function get_content() {

$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);
Expand Down

0 comments on commit 32b4161

Please sign in to comment.