Fix database exception when loading contacts page

This commit is contained in:
Tim Fry
2025-10-22 16:43:21 -03:00
parent 8d5572a943
commit f791c0cd36

View File

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