1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-24 20:17:58 +02:00

Just stubmled over this.

git-svn-id: file:///svn/phpbb/trunk@7460 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof
2007-05-04 16:37:01 +00:00
parent 0730ce82bc
commit 2cc66c9722

View File

@ -1880,28 +1880,28 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
if ($post_approved)
{
$update_sql = update_post_information('forum', $data['forum_id'], true, $data['post_id']);
}
if (sizeof($update_sql))
{
$sql_data[FORUMS_TABLE]['stat'][] = implode(', ', $update_sql[$data['forum_id']]);
if (sizeof($update_sql))
{
$sql_data[FORUMS_TABLE]['stat'][] = implode(', ', $update_sql[$data['forum_id']]);
}
}
}
if ($post_approved)
{
$update_sql = update_post_information('topic', $data['topic_id'], true, $data['post_id']);
}
if (sizeof($update_sql))
{
$sql_data[TOPICS_TABLE]['stat'][] = implode(', ', $update_sql[$data['topic_id']]);
if (sizeof($update_sql))
{
$sql_data[TOPICS_TABLE]['stat'][] = implode(', ', $update_sql[$data['topic_id']]);
}
}
}
if ($make_global)
{
$update_sql = update_post_information('forum', $data['forum_id'], true, $data['post_id']);
$update_sql = update_post_information('forum', $data['forum_id'], true);
if (sizeof($update_sql))
{
$sql_data[FORUMS_TABLE]['stat'][] = implode(', ', $update_sql[$data['forum_id']]);