From 971830ac21ccd1869857cf9ae0614e9cb5f9ca78 Mon Sep 17 00:00:00 2001 From: o-psi Date: Fri, 9 Feb 2024 22:17:09 +0000 Subject: [PATCH] Unassigned filter incorrect --- calendar_events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar_events.php b/calendar_events.php index 49626bb0..8525db36 100644 --- a/calendar_events.php +++ b/calendar_events.php @@ -128,7 +128,7 @@ while ($row = mysqli_fetch_array($sql)) { $sql = mysqli_query($mysqli, "SELECT * FROM clients LEFT JOIN tickets ON client_id = ticket_client_id LEFT JOIN users ON ticket_assigned_to = user_id WHERE ticket_schedule IS NOT NULL"); while ($row = mysqli_fetch_array($sql)) { $event_id = intval($row['ticket_id']); - if (!empty($username)) { + if (empty($username)) { $username = "Unassigned"; } else { $username = $row['user_name'];