From f791c0cd3619ba6219b6c6ccd3a4f59d89e7e009 Mon Sep 17 00:00:00 2001 From: Tim Fry Date: Wed, 22 Oct 2025 16:43:21 -0300 Subject: [PATCH] Fix database exception when loading contacts page --- core/contacts/contacts.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/contacts/contacts.php b/core/contacts/contacts.php index 574b277560..1abf0b7020 100644 --- a/core/contacts/contacts.php +++ b/core/contacts/contacts.php @@ -115,7 +115,9 @@ $sql .= ") "; } $parameters['domain_uuid'] = $_SESSION['domain_uuid']; - $parameters['group_uuid'] = $_SESSION['group_uuid'] ?? ''; + if (!empty($_SESSION['group_uuid'])) { + $parameters['group_uuid'] = $_SESSION['group_uuid']; + } $result = $database->select($sql, $parameters, 'all'); if (!empty($result)) { foreach($result as $row) {