From 80b31fa3ab4b9c8903b5cb9c0164bffdafac6e25 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 31 Dec 2001 21:57:15 +0000 Subject: [PATCH] Fixed bug #488816 git-svn-id: file:///svn/phpbb/trunk@1755 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/modcp.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/phpBB/modcp.php b/phpBB/modcp.php index 3da34a7f82..2f3cba3c06 100644 --- a/phpBB/modcp.php +++ b/phpBB/modcp.php @@ -738,8 +738,7 @@ switch($mode) $new_forum_id = $HTTP_POST_VARS['new_forum_id']; $topic_time = time(); - $sql = "INSERT INTO " . TOPICS_TABLE . " - (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type) + $sql = "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type) VALUES ('" . str_replace("\'", "''", $post_subject) . "', $first_poster, " . $topic_time . ", $new_forum_id, " . TOPIC_UNLOCKED . ", " . POST_NORMAL . ")"; if(!$result = $db->sql_query($sql, BEGIN_TRANSACTION)) { @@ -761,13 +760,13 @@ switch($mode) } $sql = "UPDATE " . POSTS_TABLE . " - SET topic_id = $new_topic_id + SET topic_id = $new_topic_id, forum_id = $new_forum_id WHERE post_id IN ($post_id_sql)"; } else if( $HTTP_POST_VARS['split_type_beyond'] ) { $sql = "UPDATE " . POSTS_TABLE . " - SET topic_id = $new_topic_id + SET topic_id = $new_topic_id, forum_id = $new_forum_id WHERE post_time >= $post_time AND topic_id = $topic_id"; } @@ -779,13 +778,14 @@ switch($mode) sync("topic", $new_topic_id); sync("topic", $topic_id); + sync("forum", $new_forum_id); sync("forum", $forum_id); $template->assign_vars(array( "META" => '') ); - $message = $lang['Topic_split'] . " " . sprintf($lang['Click_return_topic'], "", ""); + $message = $lang['Topic_split'] . "

" . sprintf($lang['Click_return_topic'], "", ""); message_die(GENERAL_MESSAGE, $message); } else