Skip to content

Commit

Permalink
users online block MDL-18328 users online block always reported 1 onl…
Browse files Browse the repository at this point in the history
…ine user to the admin if more than 50 online
  • Loading branch information
Andrew Davis committed Nov 20, 2009
1 parent de7092f commit c917a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/online_users/block_online_users.php
Expand Up @@ -116,7 +116,7 @@ function get_content() {
if (count($users) < 50) {
$usercount = "";
} else {
$usercount = count_records_sql("SELECT COUNT(u.id), u.id $from $where GROUP BY u.id");
$usercount = count_records_sql("SELECT COUNT(DISTINCT(u.id)) $from $where");
$usercount = ": $usercount";
}

Expand Down

0 comments on commit c917a13

Please sign in to comment.