[ticket/11702] Fix forum_posts left over for link-click counts in viewforum.php

PHPBB3-11702
This commit is contained in:
Joas Schilling 2013-07-14 10:49:23 -04:00
parent 3d9e57d0ce
commit 405b5e54f6

View file

@ -105,7 +105,7 @@ if ($forum_data['forum_type'] == FORUM_LINK && $forum_data['forum_link'])
if ($forum_data['forum_flags'] & FORUM_FLAG_LINK_TRACK)
{
$sql = 'UPDATE ' . FORUMS_TABLE . '
SET forum_posts = forum_posts + 1
SET forum_posts_approved = forum_posts_approved + 1
WHERE forum_id = ' . $forum_id;
$db->sql_query($sql);
}