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

@ -493,6 +493,9 @@ class Bdd {
$defuntListConditionPlaceholder = implode(',', array_fill(0, count($defuntsIdRelatedToThanato), '?'));
$conditions = $defuntsIdRelatedToThanato;
$sql .= " WHERE ".$this->tableprefix."defunt.id IN ($defuntListConditionPlaceholder)";
}
else{
return json_encode([]);
}
}
}