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) {