diff --git a/app/public/actions/close.php b/app/public/actions/close.php index 18a4ec5..318e004 100644 --- a/app/public/actions/close.php +++ b/app/public/actions/close.php @@ -12,7 +12,7 @@ try { $stmt = "UPDATE tickets SET status='Closed' WHERE uuid=:uuid"; $sql = $db->prepare($stmt); - $sql->bindParam(':uuid', $request['uuid']); + $sql->bindParam(':uuid', $_GET['rid']); $sql->execute(); } catch (PDOException $e) { $alert = array("danger", "Failed to close request: " . $e->getMessage());