mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
- Bug 1260
git-svn-id: file:///svn/phpbb/trunk@5826 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
118516b982
commit
f878d0cf95
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ function get_post_data($post_ids, $acl_list = false)
|
||||||
$rowset = array();
|
$rowset = array();
|
||||||
|
|
||||||
$sql = 'SELECT p.*, u.*, t.*, f.*
|
$sql = 'SELECT p.*, u.*, t.*, f.*
|
||||||
FROM (' . POSTS_TABLE . ' p, ' . USERS_TABLE . ' u, ' . TOPICS_TABLE . ' t)
|
FROM (' . USERS_TABLE . ' u, ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p)
|
||||||
LEFT JOIN ' . FORUMS_TABLE . ' f ON (f.forum_id = p.forum_id)
|
LEFT JOIN ' . FORUMS_TABLE . ' f ON (f.forum_id = p.forum_id)
|
||||||
WHERE p.post_id IN (' . implode(', ', $post_ids) . ')
|
WHERE p.post_id IN (' . implode(', ', $post_ids) . ')
|
||||||
AND u.user_id = p.poster_id
|
AND u.user_id = p.poster_id
|
||||||
|
|
Loading…
Add table
Reference in a new issue