Minor improvements (#879)

This commit is contained in:
Roman Kelesidis 2023-09-02 11:08:52 +07:00 committed by GitHub
commit d6cec9333c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ $user_list = DB()->fetch_rowset("
LEFT JOIN " . BB_BT_TRACKER . " tr ON(tr.user_id = dl.user_id)
WHERE dl.topic_id = $topic_id
AND dl.user_status IN (" . DL_STATUS_COMPLETE . ", " . DL_STATUS_DOWN . ")
AND dl.user_id NOT IN ({$userdata['user_id']}, " . EXCLUDED_USERS . implode(', ', get_banned_users()) . ")
AND dl.user_id NOT IN ({$userdata['user_id']}, " . EXCLUDED_USERS . ", " . implode(', ', get_banned_users()) . ")
AND u.user_active = 1
GROUP BY dl.user_id
");