mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
[ticket/14437] Make sure attachments array is properly ordered before processing
PHPBB3-14437
This commit is contained in:
@@ -599,7 +599,7 @@ if ($post_data['post_attachment'] && !$submit && !$refresh && !$preview && $mode
|
||||
WHERE post_msg_id = $post_id
|
||||
AND in_message = 0
|
||||
AND is_orphan = 0
|
||||
ORDER BY filetime DESC";
|
||||
ORDER BY attach_id DESC";
|
||||
$result = $db->sql_query($sql);
|
||||
$message_parser->attachment_data = array_merge($message_parser->attachment_data, $db->sql_fetchrowset($result));
|
||||
$db->sql_freeresult($result);
|
||||
|
Reference in New Issue
Block a user