mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-01 20:19:13 +02:00
Merge pull request #2439 from prototech/ticket/12526
[ticket/12526] Fix undefined index: filesize when editing PM with attachments. * prototech/ticket/12526: [ticket/12526] Fix undefined index: filesize when editing PM with attachments.
This commit is contained in:
commit
e28b1a8389
@ -492,7 +492,7 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||
if ($message_attachment && !$submit && !$refresh && !$preview && $action == 'edit')
|
||||
{
|
||||
// Do not change to SELECT *
|
||||
$sql = 'SELECT attach_id, is_orphan, attach_comment, real_filename
|
||||
$sql = 'SELECT attach_id, is_orphan, attach_comment, real_filename, filesize
|
||||
FROM ' . ATTACHMENTS_TABLE . "
|
||||
WHERE post_msg_id = $msg_id
|
||||
AND in_message = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user