Update app_functions.php

This commit is contained in:
2020-08-09 22:18:20 +01:00
parent 273f4bd204
commit dcb8dab3a6

View File

@@ -14,7 +14,7 @@
return $usr;
}
function get_my_requests($db) {
function get_my_open_requests($db) {
$ticket_stmt = "SELECT * FROM tickets WHERE created_by=:uuid";
$ticket_sql = $db->prepare($ticket_stmt);
$ticket_sql->bindParam(':uuid', $_SESSION['uuid']);
@@ -24,7 +24,7 @@
return $ticket_result;
}
function get_my_open_requests($db) {
function get_my_requests($db) {
$ticket_stmt = "SELECT * FROM tickets WHERE created_by=:uuid AND status = 'Closed'";
$ticket_sql = $db->prepare($ticket_stmt);
$ticket_sql->bindParam(':uuid', $_SESSION['uuid']);