1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-26 01:38:24 +00:00

Fixed exception when GetSeries(int seriesId) where seriesId didnt' exist

This commit is contained in:
kay.one 2011-06-17 20:36:22 -07:00
parent f4a765817b
commit aa836f6a88
2 changed files with 1 additions and 1 deletions

View file

@ -44,7 +44,7 @@ public virtual IList<Series> GetAllSeries()
public virtual Series GetSeries(int seriesId) public virtual Series GetSeries(int seriesId)
{ {
return _database.Single<Series>("WHERE seriesId= @0", seriesId); return _database.SingleOrDefault<Series>("WHERE seriesId= @0", seriesId);
} }
/// <summary> /// <summary>