From bab778a6386b4f2ce10a27edfdfbb5b58e2be03e Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sun, 9 Aug 2020 16:41:31 +0100 Subject: [PATCH] :bug: Use 'ticket_uuid' instead of non-existent 'uuid' Signed-off-by: Luke Tainton --- app/includes/prereqs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/includes/prereqs.php b/app/includes/prereqs.php index 5745246..ea0a809 100644 --- a/app/includes/prereqs.php +++ b/app/includes/prereqs.php @@ -95,7 +95,7 @@ function get_subscribed_requests($db) { foreach ($sub_tickets_result as $tkt) { $stmt = "SELECT * FROM tickets WHERE uuid=:uuid"; $sql = $db->prepare($stmt); - $sql->bindParam(':uuid', $tkt['uuid']); + $sql->bindParam(':uuid', $tkt['ticket_uuid']); $sql->execute(); $sql->setFetchMode(PDO::FETCH_ASSOC); $result = $sql->fetchAll();