diff --git a/app/includes/app_functions.php b/app/includes/app_functions.php index 8818fcb..4011194 100644 --- a/app/includes/app_functions.php +++ b/app/includes/app_functions.php @@ -15,7 +15,7 @@ } function get_my_open_requests($db) { - $ticket_stmt = "SELECT * FROM tickets WHERE created_by=:uuid" AND status != 'Closed'; + $ticket_stmt = "SELECT * FROM tickets WHERE created_by=:uuid AND status != 'Closed'"; $ticket_sql = $db->prepare($ticket_stmt); $ticket_sql->bindParam(':uuid', $_SESSION['uuid']); $ticket_sql->execute(); diff --git a/app/public/actions/close.php b/app/public/actions/close.php index 18a4ec5..4e9bc4a 100644 --- a/app/public/actions/close.php +++ b/app/public/actions/close.php @@ -10,7 +10,7 @@ if ($is_authorised == true) { if($_SERVER['REQUEST_METHOD'] == 'POST') { try { - $stmt = "UPDATE tickets SET status='Closed' WHERE uuid=:uuid"; + $stmt = "UPDATE tickets SET status= 5 WHERE uuid=:uuid"; $sql = $db->prepare($stmt); $sql->bindParam(':uuid', $request['uuid']); $sql->execute();