return empty when the user connected is thanatonly and there is no defunt related to the thanato on get defunts list

This commit is contained in:
Tiavina 2025-01-09 16:30:04 +03:00
parent d34fb59f56
commit fecb319d6b

View File

@ -494,6 +494,9 @@ class Bdd {
$conditions = $defuntsIdRelatedToThanato; $conditions = $defuntsIdRelatedToThanato;
$sql .= " WHERE ".$this->tableprefix."defunt.id IN ($defuntListConditionPlaceholder)"; $sql .= " WHERE ".$this->tableprefix."defunt.id IN ($defuntListConditionPlaceholder)";
} }
else{
return json_encode([]);
}
} }
} }
$sql .= " ORDER BY ".$this->tableprefix."defunt.id DESC;"; $sql .= " ORDER BY ".$this->tableprefix."defunt.id DESC;";