mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/attach-dl] Also initialise $attachments as an array.
PHPBB3-11042
This commit is contained in:
parent
4b06a220af
commit
3de4a7e78d
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ if (!$config['allow_attachments'] && !$config['allow_pm_attach'])
|
||||||
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
|
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
|
||||||
}
|
}
|
||||||
|
|
||||||
$attachment_ids = array();
|
$attachments = $attachment_ids = array();
|
||||||
if ($download_id || $post_id || $topic_id)
|
if ($download_id || $post_id || $topic_id)
|
||||||
{
|
{
|
||||||
$sql = 'SELECT a.attach_id, a.in_message, a.post_msg_id, a.extension, a.is_orphan, a.poster_id, a.filetime
|
$sql = 'SELECT a.attach_id, a.in_message, a.post_msg_id, a.extension, a.is_orphan, a.poster_id, a.filetime
|
||||||
|
|
Loading…
Add table
Reference in a new issue