Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
-> Fixed bug in #99
  • Loading branch information
NaysKutzu authored Dec 9, 2023
1 parent f8841a9 commit fb1219b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions view/tickets/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
}
$statusCondition = " `status` IN ('open', 'closed')";
$tickets_query = "SELECT * FROM mythicaldash_tickets" . mysqli_real_escape_string($conn,$searchCondition) . (mysqli_real_escape_string($conn,$searchCondition) ? ' AND ' : ' WHERE ') . mysqli_real_escape_string($conn,$statusCondition) . " ORDER BY `id` LIMIT ".mysqli_real_escape_string($conn,$offset).", ".mysqli_real_escape_string($conn,$ticketsPerPage)."";
$result = $conn->query($tickets_query);
$result = $conn->query(stripslashes($tickets_query));
$totalTicketsQuery = "SELECT COUNT(*) AS total_tickets FROM mythicaldash_tickets" . mysqli_real_escape_string($conn,$searchCondition) . (mysqli_real_escape_string($conn,$searchCondition) ? ' AND ' : ' WHERE ') . mysqli_real_escape_string($conn,$statusCondition);
$totalResult = $conn->query($totalTicketsQuery);
$totalResult = $conn->query(stripslashes($totalTicketsQuery));
$totalTickets = $totalResult->fetch_assoc()['total_tickets'];
$totalPages = ceil($totalTickets / $ticketsPerPage);
?>
Expand Down Expand Up @@ -141,4 +141,4 @@
<script src="<?= $appURL ?>/assets/js/app-user-list.js"></script>
</body>

</html>
</html>

0 comments on commit fb1219b

Please sign in to comment.