🐛 Fix the PHP function

Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit is contained in:
2020-08-10 17:18:41 +01:00
parent 5c5a4716b1
commit 8d2c8e432b

View File

@@ -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'])
?>