mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[feature/attach-dl] Initialised arrays if they're used
PHPBB3-11042
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user