Update close.php

This commit is contained in:
2020-08-09 22:55:18 +01:00
parent 9a70344c4a
commit 951f9ec383

View File

@@ -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());