mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Minor update to SQL to remove an IN where it was no longer necessary
git-svn-id: file:///svn/phpbb/trunk@2477 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
232a6596cb
commit
7012f5168f
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ $select_topic_days .= '</select>';
|
||||||
//
|
//
|
||||||
$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_time, p.post_username
|
$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_time, p.post_username
|
||||||
FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . USERS_TABLE . " u2
|
FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . USERS_TABLE . " u2
|
||||||
WHERE t.forum_id IN ($forum_id, -1)
|
WHERE t.forum_id = $forum_id
|
||||||
AND t.topic_poster = u.user_id
|
AND t.topic_poster = u.user_id
|
||||||
AND p.post_id = t.topic_last_post_id
|
AND p.post_id = t.topic_last_post_id
|
||||||
AND p.poster_id = u2.user_id
|
AND p.poster_id = u2.user_id
|
||||||
|
|
Loading…
Add table
Reference in a new issue