Prevent error for MinOrDefault.

Fixed: Issue with episode searching
pull/6/head
Mark McDowall 13 years ago
parent fb74a1a6a7
commit a42d90f22c

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

Loading…
Cancel
Save