mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/attach-dl] Initialised arrays if they're used
PHPBB3-11042
This commit is contained in:
parent
0cad61efbf
commit
20a2ceccbd
1 changed files with 2 additions and 2 deletions
|
@ -158,8 +158,8 @@ if (!$config['allow_attachments'] && !$config['allow_pm_attach'])
|
||||||
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
|
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
|
||||||
}
|
}
|
||||||
|
|
||||||
$attachment = false;
|
$attachment = ($download_id) ? array() : false;
|
||||||
$attachments = false;
|
$attachments = ($topic_id || $post_id) ? array() : false;
|
||||||
|
|
||||||
if ($download_id)
|
if ($download_id)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue