mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Just stubmled over this.
git-svn-id: file:///svn/phpbb/trunk@7460 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
0730ce82bc
commit
2cc66c9722
1 changed files with 9 additions and 9 deletions
|
@ -1880,28 +1880,28 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
||||||
if ($post_approved)
|
if ($post_approved)
|
||||||
{
|
{
|
||||||
$update_sql = update_post_information('forum', $data['forum_id'], true, $data['post_id']);
|
$update_sql = update_post_information('forum', $data['forum_id'], true, $data['post_id']);
|
||||||
}
|
|
||||||
|
|
||||||
if (sizeof($update_sql))
|
if (sizeof($update_sql))
|
||||||
{
|
{
|
||||||
$sql_data[FORUMS_TABLE]['stat'][] = implode(', ', $update_sql[$data['forum_id']]);
|
$sql_data[FORUMS_TABLE]['stat'][] = implode(', ', $update_sql[$data['forum_id']]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($post_approved)
|
if ($post_approved)
|
||||||
{
|
{
|
||||||
$update_sql = update_post_information('topic', $data['topic_id'], true, $data['post_id']);
|
$update_sql = update_post_information('topic', $data['topic_id'], true, $data['post_id']);
|
||||||
}
|
|
||||||
|
|
||||||
if (sizeof($update_sql))
|
if (sizeof($update_sql))
|
||||||
{
|
{
|
||||||
$sql_data[TOPICS_TABLE]['stat'][] = implode(', ', $update_sql[$data['topic_id']]);
|
$sql_data[TOPICS_TABLE]['stat'][] = implode(', ', $update_sql[$data['topic_id']]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($make_global)
|
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))
|
if (sizeof($update_sql))
|
||||||
{
|
{
|
||||||
$sql_data[FORUMS_TABLE]['stat'][] = implode(', ', $update_sql[$data['forum_id']]);
|
$sql_data[FORUMS_TABLE]['stat'][] = implode(', ', $update_sql[$data['forum_id']]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue