diff --git a/phpBB/download/file.php b/phpBB/download/file.php index ae44641852..4b19348bac 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -333,8 +333,8 @@ else if ($attachments && sizeof($attachments) < 2) { + $attachment = current($attachments); $attachments = false; - $attachment = $attachments[0]; } if ($attachment)