From 9a0aa9ce970c9e2c530af2cae9208420fdc5d479 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 5 Aug 2025 18:36:23 -0400 Subject: [PATCH] Fix Calendar not showing when no client is selected --- user/calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/calendar.php b/user/calendar.php index f59f8c9e..455e66ef 100644 --- a/user/calendar.php +++ b/user/calendar.php @@ -4,12 +4,12 @@ if (isset($_GET['client_id'])) { require_once "includes/inc_all_client.php"; $client_event_query = "WHERE event_client_id = $client_id"; - $client_query = "WHERE client_id = $client_id"; + $client_query = "WHERE 1 = 1 AND client_id = $client_id"; $client_url = "&client_id=$client_id"; } else { require_once "includes/inc_all.php"; $client_event_query = ''; - $client_query = ''; + $client_query = 'WHERE 1 = 1'; $client_url = ''; }