mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-25 07:35:48 -07:00
Update Attach.php
This commit is contained in:
parent
3d01373ba0
commit
f3168ef93e
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ class Attach
|
||||||
$this->attachment_extension_list = get_var('extension_list', ['']);
|
$this->attachment_extension_list = get_var('extension_list', ['']);
|
||||||
$this->attachment_mimetype_list = get_var('mimetype_list', ['']);
|
$this->attachment_mimetype_list = get_var('mimetype_list', ['']);
|
||||||
|
|
||||||
$this->filename = (isset($_FILES['fileupload'], $_FILES['fileupload']['name']) && $_FILES['fileupload']['name'] !== 'none') ? trim(stripslashes($_FILES['fileupload']['name'])) : '';
|
$this->filename = (isset($_FILES['fileupload']['name']) && $_FILES['fileupload']['name'] !== 'none') ? trim(stripslashes($_FILES['fileupload']['name'])) : '';
|
||||||
|
|
||||||
$this->attachment_list = get_var('attachment_list', ['']);
|
$this->attachment_list = get_var('attachment_list', ['']);
|
||||||
$this->attachment_thumbnail_list = get_var('attach_thumbnail_list', [0]);
|
$this->attachment_thumbnail_list = get_var('attach_thumbnail_list', [0]);
|
||||||
|
@ -431,7 +431,7 @@ class Attach
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get current informations to delete the Old Attachment
|
// Get current information to delete the Old Attachment
|
||||||
$sql = 'SELECT physical_filename, comment, thumbnail
|
$sql = 'SELECT physical_filename, comment, thumbnail
|
||||||
FROM ' . BB_ATTACHMENTS_DESC . '
|
FROM ' . BB_ATTACHMENTS_DESC . '
|
||||||
WHERE attach_id = ' . (int)$attachment_id;
|
WHERE attach_id = ' . (int)$attachment_id;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue