mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 12:58:52 +00:00
[feature/attach-dl] Fixed a bug with single attachments
PHPBB3-11042
This commit is contained in:
parent
10f0fc0713
commit
c4655b32f3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue