diff options
author | Jim Wigginton <terrafrost@phpbb.com> | 2009-04-24 17:27:10 +0000 |
---|---|---|
committer | Jim Wigginton <terrafrost@phpbb.com> | 2009-04-24 17:27:10 +0000 |
commit | f6bb6dda3f3ab856cd77f06dab649697e695292e (patch) | |
tree | 82e395c79eea76169610b0f6df1402cd1c7dd2bb /phpBB/includes/mcp | |
parent | c33550702748ee411cbd3f15a8bb98eba0011aa5 (diff) | |
download | forums-f6bb6dda3f3ab856cd77f06dab649697e695292e.tar forums-f6bb6dda3f3ab856cd77f06dab649697e695292e.tar.gz forums-f6bb6dda3f3ab856cd77f06dab649697e695292e.tar.bz2 forums-f6bb6dda3f3ab856cd77f06dab649697e695292e.tar.xz forums-f6bb6dda3f3ab856cd77f06dab649697e695292e.zip |
Fixed bug #'ers 42585, 35505, 36675, and 42705
Authorised by: acydburn
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9482 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r-- | phpBB/includes/mcp/mcp_queue.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index 1a35524167..6209a27bf7 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -545,12 +545,6 @@ function approve_post($post_id_list, $id, $mode) } else { - if (!isset($topic_replies_sql[$post_data['topic_id']])) - { - $topic_replies_sql[$post_data['topic_id']] = 0; - } - $topic_replies_sql[$post_data['topic_id']]++; - $approve_log[] = array( 'type' => 'post', 'post_subject' => $post_data['post_subject'], @@ -559,6 +553,15 @@ function approve_post($post_id_list, $id, $mode) ); } + if ($post_data['topic_replies_real'] > 0) + { + if (!isset($topic_replies_sql[$post_data['topic_id']])) + { + $topic_replies_sql[$post_data['topic_id']] = 0; + } + $topic_replies_sql[$post_data['topic_id']]++; + } + if ($post_data['forum_id']) { if (!isset($forum_topics_posts[$post_data['forum_id']])) |