From f3168ef93e57b3628b8a2dbdbc63bfb1f0016533 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 1 Mar 2025 21:01:49 +0300 Subject: [PATCH] Update Attach.php --- src/Attach.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Attach.php b/src/Attach.php index a84bfdf0d..1d6e92d39 100644 --- a/src/Attach.php +++ b/src/Attach.php @@ -67,7 +67,7 @@ class Attach $this->attachment_extension_list = get_var('extension_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_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 FROM ' . BB_ATTACHMENTS_DESC . ' WHERE attach_id = ' . (int)$attachment_id;