Minor improvements (#884)

* Minor improvements

* Update displaying_torrent.php

* Updated

* Updated

* Updated

* Update terms.php
This commit is contained in:
Roman Kelesidis 2023-09-04 16:42:15 +07:00 committed by GitHub
commit 209b8cd638
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 207 additions and 211 deletions

View file

@ -31,7 +31,7 @@ $users_cnt = [
'user' => 0,
'guest' => 0,
];
$online = $online_short = array('userlist' => '');
$online = $online_short = ['userlist' => ''];
$sql = "
SELECT
@ -117,10 +117,10 @@ if (!$online['userlist']) {
$total_online = $logged_online + $guests_online;
if ($total_online > $bb_cfg['record_online_users']) {
bb_update_config(array(
bb_update_config([
'record_online_users' => $total_online,
'record_online_date' => TIMENOW,
));
'record_online_date' => TIMENOW
]);
}
$online['stat'] = $online_short['stat'] = sprintf($lang['ONLINE_USERS'], $total_online, $logged_online, $guests_online);