Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'w06_MDL-26262_20_onlineblock' of git://github.com/skoda…

…k/moodle
  • Loading branch information...
commit 6ae16d7fff6fe24dd67005997482bc2e11cc7971 2 parents 9cb70ad + 801dea0
@samhemelryk samhemelryk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  blocks/online_users/block_online_users.php
View
2  blocks/online_users/block_online_users.php
@@ -54,7 +54,7 @@ function get_content() {
$userfields = user_picture::fields('u', array('username'));
- if ($this->page->course->id == SITEID) { // Site-level
+ if ($this->page->course->id == SITEID or $this->page->context->contextlevel < CONTEXT_COURSE) { // Site-level
$sql = "SELECT $userfields, MAX(u.lastaccess) AS lastaccess
FROM {user} u $groupmembers
WHERE u.lastaccess > $timefrom
Please sign in to comment.
Something went wrong with that request. Please try again.