aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-03-06 10:40:42 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-03-06 10:40:42 +0100
commitf1772ce7e5b2d75ced8379b5ed8a644af248532f (patch)
tree368fc511aa417a4fa0b31393e4cfcabe10e6f982
parent1e10664739c2eb212c583ae2fbcdd62fc3d46984 (diff)
downloadforums-f1772ce7e5b2d75ced8379b5ed8a644af248532f.tar
forums-f1772ce7e5b2d75ced8379b5ed8a644af248532f.tar.gz
forums-f1772ce7e5b2d75ced8379b5ed8a644af248532f.tar.bz2
forums-f1772ce7e5b2d75ced8379b5ed8a644af248532f.tar.xz
forums-f1772ce7e5b2d75ced8379b5ed8a644af248532f.zip
[ticket/14437] Preserve attachment ID order by ordering by attach_id
PHPBB3-14437
-rw-r--r--phpBB/viewtopic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index fcc44abc33..c0041b0993 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -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))