Bug/issue 55 (#57)
* Fixed #55 * Update close.php
This commit was merged in pull request #57.
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
if ($is_authorised == true) {
|
||||
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
try {
|
||||
$stmt = "UPDATE tickets SET status= 5 WHERE uuid=:uuid";
|
||||
$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());
|
||||
|
||||
Reference in New Issue
Block a user