Skip to content

Commit

Permalink
MDL-54617 block_online_users: Always show count of online users
Browse files Browse the repository at this point in the history
  • Loading branch information
danielneis authored and cameorn1730 committed May 26, 2016
1 parent 6a74e76 commit 4b2dbde
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions blocks/online_users/block_online_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,8 @@ function get_content() {
$users = array();
}

if (count($users) < $userlimit) {
$usercount = "";
} else {
$usercount = $onlineusers->count_users();
$usercount = ": $usercount";
}
$usercount = $onlineusers->count_users();
$usercount = ": $usercount";

$this->content->text = "<div class=\"info\">(".get_string("periodnminutes","block_online_users",$minutes)."$usercount)</div>";

Expand Down

0 comments on commit 4b2dbde

Please sign in to comment.