aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-11-30 12:05:15 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-11-30 12:05:15 +0000
commitb4bf67527386258582d34b3b727458d43693d755 (patch)
tree9ddb79f3a662f3b32c3474959fa68ab3a17d01c9 /phpBB
parent764c1c4f2b8602c1536da78eb5d9c4a9fbd6d55f (diff)
downloadforums-b4bf67527386258582d34b3b727458d43693d755.tar
forums-b4bf67527386258582d34b3b727458d43693d755.tar.gz
forums-b4bf67527386258582d34b3b727458d43693d755.tar.bz2
forums-b4bf67527386258582d34b3b727458d43693d755.tar.xz
forums-b4bf67527386258582d34b3b727458d43693d755.zip
Do not increment users post count after post approval if post had been posted in a forum with no post count increasing set (Bug #37865)
git-svn-id: file:///svn/phpbb/trunk@9134 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/mcp/mcp_queue.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php
index b94c838d43..0db75dd268 100644
--- a/phpBB/includes/mcp/mcp_queue.php
+++ b/phpBB/includes/mcp/mcp_queue.php
@@ -504,8 +504,12 @@ function approve_post($post_id_list, $id, $mode)
$forum_id_list[$post_data['forum_id']] = 1;
}
- // User post update (we do not care about topic or post, since user posts are strictly connected to posts
- $user_posts_sql[$post_data['poster_id']] = (empty($user_posts_sql[$post_data['poster_id']])) ? 1 : $user_posts_sql[$post_data['poster_id']] + 1;
+ // User post update (we do not care about topic or post, since user posts are strictly connected to posts)
+ // But we care about forums where post counts get not increased. ;)
+ if ($post_data['post_postcount'])
+ {
+ $user_posts_sql[$post_data['poster_id']] = (empty($user_posts_sql[$post_data['poster_id']])) ? 1 : $user_posts_sql[$post_data['poster_id']] + 1;
+ }
// Topic or Post. ;)
if ($post_data['topic_first_post_id'] == $post_id)