mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-01 07:55:22 +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)
|
public static int MinOrDefault(this IEnumerable<int> ints)
|
||||||
{
|
{
|
||||||
|
if (ints == null)
|
||||||
|
return 0;
|
||||||
|
|
||||||
var intsList = ints.ToList();
|
var intsList = ints.ToList();
|
||||||
|
|
||||||
if (!intsList.Any())
|
if (!intsList.Any())
|
||||||
|
Reference in New Issue
Block a user