fix: return empty ticket list when no tickets found

This commit is contained in:
Meik
2026-07-01 14:20:08 +02:00
parent 6cb9e3b5fd
commit bdab9f37ba
4 changed files with 7 additions and 7 deletions

View File

@@ -210,7 +210,7 @@ namespace C4IT.F4SD
if (activityTable?.Rows == null || activityTable.Rows.Count == 0)
{
LogEntry($"No activity entries found for userSid: '{userSid}'", LogLevels.Warning);
return null;
return new List<cF4SDTicketSummary>();
}
for (int i = 0; i < activityTable.Rows.Count; i++)
@@ -291,7 +291,7 @@ namespace C4IT.F4SD
catch (Exception E)
{
LogException(E);
return null;
return new List<cF4SDTicketSummary>();
}
finally
{