Permalink
Browse files

users online block MDL-18328 users online block always reported 1 onl…

…ine user to the admin if more than 50 online
  • Loading branch information...
1 parent de7092f commit c917a13b47b76f7c3b2a14a0a441101da5313b0d Andrew Davis committed Nov 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 blocks/online_users/block_online_users.php
@@ -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";
}

0 comments on commit c917a13

Please sign in to comment.