aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-03-16 00:50:34 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-03-16 00:50:34 +0000
commit0ae0d2f19c29d719aa17ed4263110d19fa96059c (patch)
tree9bc5ce2cac6ab64067d7122614a555decb7e1757 /phpBB/includes/functions_admin.php
parent3adda9c1acaf673608fa00ac79f47446560d2bb7 (diff)
downloadforums-0ae0d2f19c29d719aa17ed4263110d19fa96059c.tar
forums-0ae0d2f19c29d719aa17ed4263110d19fa96059c.tar.gz
forums-0ae0d2f19c29d719aa17ed4263110d19fa96059c.tar.bz2
forums-0ae0d2f19c29d719aa17ed4263110d19fa96059c.tar.xz
forums-0ae0d2f19c29d719aa17ed4263110d19fa96059c.zip
*** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@7200 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index fcdbd452a4..bd62366989 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -1490,7 +1490,7 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = false,
}
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
WHERE ' . $db->sql_in_set('p.forum_id', $forum_ids) . '
AND p.topic_id = t.topic_id