1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-26 13:04:24 +01:00

[ticket/14437] Preserve attachment ID order by ordering by attach_id

PHPBB3-14437
This commit is contained in:
Marc Alexander 2016-03-06 10:40:42 +01:00
parent 1e10664739
commit f1772ce7e5

View File

@ -1452,7 +1452,7 @@ if (sizeof($attach_list))
FROM ' . ATTACHMENTS_TABLE . '
WHERE ' . $db->sql_in_set('post_msg_id', $attach_list) . '
AND in_message = 0
ORDER BY filetime DESC, post_msg_id ASC';
ORDER BY attach_id DESC, post_msg_id ASC';
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))