diff --git a/src/site/src/Controllers/TopicController.php b/src/site/src/Controllers/TopicController.php index f32dae33e7d..322b9e428c2 100644 --- a/src/site/src/Controllers/TopicController.php +++ b/src/site/src/Controllers/TopicController.php @@ -315,7 +315,7 @@ public function removeattachments() throw new RuntimeException(Text::_('Forbidden'), 403); } - $attach_id = $this->input->getInt('file_id', 0); + $attach_id = $this->input->getInt('files_id_delete', 0); $userid = $this->input->getInt('userid', 0); $success = []; $instance = KunenaAttachmentHelper::get($attach_id);