mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 15:37:55 +02:00
Prevent error for MinOrDefault.
Fixed: Issue with episode searching
This commit is contained in:
@@ -145,6 +145,9 @@ namespace NzbDrone.Core
|
||||
|
||||
public static int MinOrDefault(this IEnumerable<int> ints)
|
||||
{
|
||||
if (ints == null)
|
||||
return 0;
|
||||
|
||||
var intsList = ints.ToList();
|
||||
|
||||
if (!intsList.Any())
|
||||
|
Reference in New Issue
Block a user