diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php index 953ec95af1..5e50ccf985 100644 --- a/phpBB/includes/mcp/mcp_topic.php +++ b/phpBB/includes/mcp/mcp_topic.php @@ -638,9 +638,10 @@ function split_topic($action, $topic_id, $to_forum_id, $subject) $topic_info['topic_title'] )); - // Change topic title of first post + // Change topic title of first post and write icon_id to post $sql = 'UPDATE ' . POSTS_TABLE . " - SET post_subject = '" . $db->sql_escape($subject) . "' + SET post_subject = '" . $db->sql_escape($subject) . "', + icon_id = '" . $icon_id . "' WHERE post_id = {$post_id_list[0]}"; $db->sql_query($sql);