update tickets.php

This commit is contained in:
Hugo Sampaio 2025-01-29 15:55:58 -03:00
parent ed5aa9a0c2
commit c02b267d44
1 changed files with 4 additions and 3 deletions

View File

@ -37,12 +37,13 @@ if (isset($_GET['status']) && is_array($_GET['status']) && !empty($_GET['status'
}
if (isset($_GET['category'])) {
if ($_GET['category'] == 'empty') {
$category = sanitizeInput($_GET['category']);
if ($category == 'empty') {
$category_snippet = "AND ticket_category = 0 ";
} elseif ($_GET['category'] == 'all') {
} elseif ($category == 'all') {
$category_snippet = "";
} else {
$category_snippet = "AND ticket_category = " . $_GET['category'];
$category_snippet = "AND ticket_category = " . $category;
}
}