Update close.php
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
try {
|
try {
|
||||||
$stmt = "UPDATE tickets SET status='Closed' WHERE uuid=:uuid";
|
$stmt = "UPDATE tickets SET status='Closed' WHERE uuid=:uuid";
|
||||||
$sql = $db->prepare($stmt);
|
$sql = $db->prepare($stmt);
|
||||||
$sql->bindParam(':uuid', $request['uuid']);
|
$sql->bindParam(':uuid', $_GET['rid']);
|
||||||
$sql->execute();
|
$sql->execute();
|
||||||
} catch (PDOException $e) {
|
} catch (PDOException $e) {
|
||||||
$alert = array("danger", "Failed to close request: " . $e->getMessage());
|
$alert = array("danger", "Failed to close request: " . $e->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user