mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
6f5d640e2e
1 changed files with 5 additions and 4 deletions
|
@ -1566,10 +1566,11 @@ function mcp_fork_topic($topic_ids)
|
|||
// Copy Attachments
|
||||
if ($row['post_attachment'])
|
||||
{
|
||||
$sql = 'SELECT * FROM ' . ATTACHMENTS_TABLE . "
|
||||
WHERE post_msg_id = {$row['post_id']}
|
||||
AND topic_id = $topic_id
|
||||
AND in_message = 0";
|
||||
$sql = 'SELECT * FROM ' . ATTACHMENTS_TABLE . '
|
||||
WHERE post_msg_id = ' . (int) $row['post_id'] . '
|
||||
AND topic_id = ' . (int) $topic_id . '
|
||||
AND in_message = 0
|
||||
ORDER BY attach_id ASC';
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
$sql_ary = array();
|
||||
|
|
Loading…
Add table
Reference in a new issue