mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 13:24:01 -07:00
Minor improvements (#879)
This commit is contained in:
parent
7281480b0f
commit
d6cec9333c
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ $user_list = DB()->fetch_rowset("
|
||||||
LEFT JOIN " . BB_BT_TRACKER . " tr ON(tr.user_id = dl.user_id)
|
LEFT JOIN " . BB_BT_TRACKER . " tr ON(tr.user_id = dl.user_id)
|
||||||
WHERE dl.topic_id = $topic_id
|
WHERE dl.topic_id = $topic_id
|
||||||
AND dl.user_status IN (" . DL_STATUS_COMPLETE . ", " . DL_STATUS_DOWN . ")
|
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
|
AND u.user_active = 1
|
||||||
GROUP BY dl.user_id
|
GROUP BY dl.user_id
|
||||||
");
|
");
|
||||||
|
|
|
@ -348,7 +348,7 @@ class Post
|
||||||
$watch_list = DB()->fetch_rowset("SELECT u.username, u.user_id, u.user_email, u.user_lang
|
$watch_list = DB()->fetch_rowset("SELECT u.username, u.user_id, u.user_email, u.user_lang
|
||||||
FROM " . BB_TOPICS_WATCH . " tw, " . BB_USERS . " u
|
FROM " . BB_TOPICS_WATCH . " tw, " . BB_USERS . " u
|
||||||
WHERE tw.topic_id = $topic_id
|
WHERE tw.topic_id = $topic_id
|
||||||
AND tw.user_id NOT IN (" . $userdata['user_id'] . ", " . EXCLUDED_USERS . implode(', ', get_banned_users()) . ")
|
AND tw.user_id NOT IN (" . $userdata['user_id'] . ", " . EXCLUDED_USERS . ", " . implode(', ', get_banned_users()) . ")
|
||||||
AND tw.notify_status = " . TOPIC_WATCH_NOTIFIED . "
|
AND tw.notify_status = " . TOPIC_WATCH_NOTIFIED . "
|
||||||
AND u.user_id = tw.user_id
|
AND u.user_id = tw.user_id
|
||||||
AND u.user_active = 1
|
AND u.user_active = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue