mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-21 02:31:38 +02:00
[feature/attach-dl] Fixed a bug with single attachments
PHPBB3-11042
This commit is contained in:
@ -333,8 +333,8 @@ else
|
|||||||
|
|
||||||
if ($attachments && sizeof($attachments) < 2)
|
if ($attachments && sizeof($attachments) < 2)
|
||||||
{
|
{
|
||||||
|
$attachment = current($attachments);
|
||||||
$attachments = false;
|
$attachments = false;
|
||||||
$attachment = $attachments[0];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($attachment)
|
if ($attachment)
|
||||||
|
Reference in New Issue
Block a user