diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-05-04 16:37:01 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-05-04 16:37:01 +0000 |
commit | 2cc66c972255265e999a6953319fb3a8c04b0f6d (patch) | |
tree | 5879854a04c25af4470878fa18a3e0f6268921c2 /phpBB | |
parent | 0730ce82bcb16db6835093930db26da7f194a993 (diff) | |
download | forums-2cc66c972255265e999a6953319fb3a8c04b0f6d.tar forums-2cc66c972255265e999a6953319fb3a8c04b0f6d.tar.gz forums-2cc66c972255265e999a6953319fb3a8c04b0f6d.tar.bz2 forums-2cc66c972255265e999a6953319fb3a8c04b0f6d.tar.xz forums-2cc66c972255265e999a6953319fb3a8c04b0f6d.zip |
Just stubmled over this.
git-svn-id: file:///svn/phpbb/trunk@7460 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions_posting.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 6274cdd394..8613c10651 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -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']]); |