mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
4cd895e456
1 changed files with 7 additions and 3 deletions
|
@ -646,9 +646,13 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
|
||||||
$topic_info['topic_title']
|
$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 . "
|
$sql_ary = [
|
||||||
SET post_subject = '" . $db->sql_escape($subject) . "'
|
'post_subject' => $subject,
|
||||||
|
'icon_id' => $icon_id,
|
||||||
|
];
|
||||||
|
$sql = 'UPDATE ' . POSTS_TABLE . '
|
||||||
|
SET ' . $db->sql_build_array('UPDATE', $sql_ary) . "
|
||||||
WHERE post_id = {$post_id_list[0]}";
|
WHERE post_id = {$post_id_list[0]}";
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue