From f6688e5020ac5e433a519d4f9a205bdd1c9539a9 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sun, 9 Aug 2020 20:30:01 +0100 Subject: [PATCH] :bug: Fix file download issues Signed-off-by: Luke Tainton --- app/includes/app_functions.php | 4 ++-- app/public/view.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/includes/app_functions.php b/app/includes/app_functions.php index 52ca0fb..802045e 100644 --- a/app/includes/app_functions.php +++ b/app/includes/app_functions.php @@ -76,10 +76,10 @@ return $result; } - function get_single_file($db, $file) { + function get_single_file($db, $fileid) { $stmt = "SELECT * FROM ticket_uploads WHERE id=:fileid"; $sql = $db->prepare($stmt); - $sql->bindParam(':fileid', $file['id']); + $sql->bindParam(':fileid', $fileid); $sql->execute(); $sql->setFetchMode(PDO::FETCH_ASSOC); $result = $sql->fetchAll(); diff --git a/app/public/view.php b/app/public/view.php index 2369e82..ac79bc7 100644 --- a/app/public/view.php +++ b/app/public/view.php @@ -128,7 +128,7 @@
- +