mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
*** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@7200 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3adda9c1ac
commit
0ae0d2f19c
1 changed files with 1 additions and 1 deletions
|
@ -1490,7 +1490,7 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = false,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$sql = 'SELECT forum_id, COUNT(p.post_id) AS forum_posts, MAX(p.post_id) AS last_post_id
|
$sql = 'SELECT p.forum_id, COUNT(p.post_id) AS forum_posts, MAX(p.post_id) AS last_post_id
|
||||||
FROM ' . POSTS_TABLE . ' p, ' . TOPICS_TABLE . ' t
|
FROM ' . POSTS_TABLE . ' p, ' . TOPICS_TABLE . ' t
|
||||||
WHERE ' . $db->sql_in_set('p.forum_id', $forum_ids) . '
|
WHERE ' . $db->sql_in_set('p.forum_id', $forum_ids) . '
|
||||||
AND p.topic_id = t.topic_id
|
AND p.topic_id = t.topic_id
|
||||||
|
|
Loading…
Add table
Reference in a new issue