aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-03-06 11:22:05 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-03-06 11:22:53 +0100
commit3d7d0c40b8e7f1897fc4a323d4edee6db2a7f452 (patch)
tree32f40e24235df2b32115e4166d596fd98cae812b /phpBB/posting.php
parentf1772ce7e5b2d75ced8379b5ed8a644af248532f (diff)
downloadforums-3d7d0c40b8e7f1897fc4a323d4edee6db2a7f452.tar
forums-3d7d0c40b8e7f1897fc4a323d4edee6db2a7f452.tar.gz
forums-3d7d0c40b8e7f1897fc4a323d4edee6db2a7f452.tar.bz2
forums-3d7d0c40b8e7f1897fc4a323d4edee6db2a7f452.tar.xz
forums-3d7d0c40b8e7f1897fc4a323d4edee6db2a7f452.zip
[ticket/14437] Make sure attachments array is properly ordered before processing
PHPBB3-14437
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index a7df1a018e..263809e998 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -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);