Fix Calendar not showing when no client is selected

This commit is contained in:
johnnyq 2025-08-05 18:36:23 -04:00
parent 643a4ce666
commit 9a0aa9ce97
1 changed files with 2 additions and 2 deletions

View File

@ -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 = '';
}