MDL-54617 block_online_users: Always show count of online users

This commit is contained in:
Daniel Neis Araujo
2016-05-26 10:24:30 +08:00
committed by Cameron Ball
parent 6a74e76fb8
commit 4b2dbdecd1
+2 -6
View File
@@ -92,12 +92,8 @@ class block_online_users extends block_base {
$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>";