🐛 Use 'ticket_uuid' instead of non-existent 'uuid'

Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit was merged in pull request #45.
This commit is contained in:
2020-08-09 16:41:31 +01:00
parent 0079bc5152
commit bab778a638

View File

@@ -95,7 +95,7 @@ function get_subscribed_requests($db) {
foreach ($sub_tickets_result as $tkt) { foreach ($sub_tickets_result as $tkt) {
$stmt = "SELECT * FROM tickets WHERE uuid=:uuid"; $stmt = "SELECT * FROM tickets WHERE uuid=:uuid";
$sql = $db->prepare($stmt); $sql = $db->prepare($stmt);
$sql->bindParam(':uuid', $tkt['uuid']); $sql->bindParam(':uuid', $tkt['ticket_uuid']);
$sql->execute(); $sql->execute();
$sql->setFetchMode(PDO::FETCH_ASSOC); $sql->setFetchMode(PDO::FETCH_ASSOC);
$result = $sql->fetchAll(); $result = $sql->fetchAll();