diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2006-11-19 21:00:48 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-11-19 21:00:48 +0000 |
| commit | 6a082426840164a3c8187559dddf3ab777b958fa (patch) | |
| tree | fd38a30c9f893e71cdb9c5cec3a972036ef53131 /phpBB/includes/functions_posting.php | |
| parent | f78289033236a4c108aae5ad8315c60e5f7dc19b (diff) | |
| download | forums-6a082426840164a3c8187559dddf3ab777b958fa.tar forums-6a082426840164a3c8187559dddf3ab777b958fa.tar.gz forums-6a082426840164a3c8187559dddf3ab777b958fa.tar.bz2 forums-6a082426840164a3c8187559dddf3ab777b958fa.tar.xz forums-6a082426840164a3c8187559dddf3ab777b958fa.zip | |
some tiny fixes.
git-svn-id: file:///svn/phpbb/trunk@6614 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
| -rw-r--r-- | phpBB/includes/functions_posting.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 6d3fcd47dd..aec4a3417f 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1242,7 +1242,7 @@ function delete_post($forum_id, $topic_id, $post_id, &$data) $sql_data[FORUMS_TABLE] = 'forum_posts = forum_posts - 1'; } - $sql_data[TOPICS_TABLE] = 'topic_first_post_id = ' . intval($row['post_id']) . ", topic_first_poster_colour = '" . $db->sql_escape($row['user_colour']) . ", topic_first_poster_name = '" . (($row['poster_id'] == ANONYMOUS) ? $db->sql_escape($row['post_username']) : $db->sql_escape($row['username'])) . "'"; + $sql_data[TOPICS_TABLE] = 'topic_first_post_id = ' . intval($row['post_id']) . ", topic_first_poster_colour = '" . $db->sql_escape($row['user_colour']) . "', topic_first_poster_name = '" . (($row['poster_id'] == ANONYMOUS) ? $db->sql_escape($row['post_username']) : $db->sql_escape($row['username'])) . "'"; $sql_data[TOPICS_TABLE] .= ', topic_replies_real = topic_replies_real - 1' . (($data['post_approved']) ? ', topic_replies = topic_replies - 1' : ''); $next_post_id = (int) $row['post_id']; |
