Permalink
Browse files

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

…k/moodle
  • Loading branch information...
2 parents 9cb70ad + 801dea0 commit 6ae16d7fff6fe24dd67005997482bc2e11cc7971 Sam Hemelryk committed Feb 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 6ae16d7

Please sign in to comment.