This commit is contained in:
Roman Kelesidis 2024-01-06 14:26:17 +07:00
parent 1442ec7b49
commit 37b547d449
2 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ $row = DB()->fetch_row("SELECT COUNT(*) AS usercount FROM ". BB_USERS ." WHERE u
$data['usercount'] = number_format($row['usercount']);
// newestuser
$row = DB()->fetch_row("SELECT user_id, username, user_rank FROM ". BB_USERS ." WHERE user_active = 1 ORDER BY user_id DESC LIMIT 1");
$row = DB()->fetch_row("SELECT user_id, username, user_rank FROM ". BB_USERS ." WHERE user_active = 1 AND user_id NOT IN(". EXCLUDED_USERS_CSV .") ORDER BY user_id DESC LIMIT 1");
$data['newestuser'] = $row;
// post/topic count

View File

@ -1334,6 +1334,7 @@ function bb_update_config ($params, $table = BB_CONFIG)
function get_db_stat ($mode)
{
$sql = null;
switch ($mode)
{
case 'usercount':