1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

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
This commit is contained in:
Jim Wigginton
2009-04-24 17:27:10 +00:00
parent c335507027
commit f6bb6dda3f
6 changed files with 24 additions and 15 deletions

View File

@@ -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']]))