From 8d2c8e432bd75243cd281c9d7ddf6d59d92b8cd1 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Mon, 10 Aug 2020 17:18:41 +0100 Subject: [PATCH] :bug: Fix the PHP function Signed-off-by: Luke Tainton --- app/public/editsub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/public/editsub.php b/app/public/editsub.php index 554b117..de96570 100644 --- a/app/public/editsub.php +++ b/app/public/editsub.php @@ -8,7 +8,7 @@ $all_users = get_all_users($db); - function get_req_subs($uuid) { + function get_req_subs($db, $uuid) { $stmt = "SELECT * FROM ticket_subscribers WHERE ticket_uuid=:uuid"; $sql = $db->prepare($stmt); $sql->bindParam(':uuid', $uuid); @@ -18,7 +18,7 @@ return $result; } - $subs = get_req_subs($request['uuid']) + $subs = get_req_subs($db, $request['uuid']) ?>