diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2005-01-23 23:02:10 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-01-23 23:02:10 +0000 |
| commit | 1613c37d91ab6bf7d6812b889c79f423bf52fda1 (patch) | |
| tree | 019d07a37419078341c296f55af67b43750e9837 /phpBB/posting.php | |
| parent | 055aef50030304a2a3a50e5a91bdb29a8b76ac64 (diff) | |
| download | forums-1613c37d91ab6bf7d6812b889c79f423bf52fda1.tar forums-1613c37d91ab6bf7d6812b889c79f423bf52fda1.tar.gz forums-1613c37d91ab6bf7d6812b889c79f423bf52fda1.tar.bz2 forums-1613c37d91ab6bf7d6812b889c79f423bf52fda1.tar.xz forums-1613c37d91ab6bf7d6812b889c79f423bf52fda1.zip | |
- change registration page language on-the-fly
- added download function to functions_compress as well as tiny bugfixes
- added local_name and author to iso.txt file
git-svn-id: file:///svn/phpbb/trunk@5074 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index e8f43b6c81..aab0d3da78 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1537,11 +1537,11 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u if ($post_mode == 'post') { $sql_data[TOPICS_TABLE]['sql'] = array( - 'topic_first_post_id' => $data['post_id'], - 'topic_last_post_id' => $data['post_id'], - 'topic_last_post_time' => $current_time, - 'topic_last_poster_id' => (int) $user->data['user_id'], - 'topic_last_poster_name' => ($user->data['user_id'] == ANONYMOUS && $username) ? stripslashes($username) : $user->data['username'] + 'topic_first_post_id' => $data['post_id'], + 'topic_last_post_id' => $data['post_id'], + 'topic_last_post_time' => $current_time, + 'topic_last_poster_id' => (int) $user->data['user_id'], + 'topic_last_poster_name'=> ($user->data['user_id'] == ANONYMOUS && $username) ? stripslashes($username) : $user->data['username'] ); } @@ -1557,11 +1557,11 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u FROM ' . TOPICS_TABLE . ' WHERE topic_id = ' . $data['topic_id']; $result = $db->sql_query($sql); - $row = $db->sql_fetchrow($result); + $db->sql_freeresult($result); // globalise - if ((int)$row['topic_type'] != POST_GLOBAL && $topic_type == POST_GLOBAL) + if ($row['topic_type'] != POST_GLOBAL && $topic_type == POST_GLOBAL) { // Decrement topic/post count $make_global = true; @@ -1577,7 +1577,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u $db->sql_query($sql); } // unglobalise - else if ((int)$row['topic_type'] == POST_GLOBAL && $topic_type != POST_GLOBAL) + else if ($row['topic_type'] == POST_GLOBAL && $topic_type != POST_GLOBAL) { // Increment topic/post count $make_global = true; |
