#182 - Eliminate duplicates in the selection list for max rating in user screen

This commit is contained in:
Luke Pulverenti 2013-04-22 12:04:54 -04:00
parent 4c69edebe0
commit 6ef9fd9513
2 changed files with 3 additions and 3 deletions

View file

@ -852,12 +852,12 @@ namespace MediaBrowser.Controller.Entities
throw new ArgumentNullException("user");
}
if (string.IsNullOrEmpty(user.Configuration.MaxParentalRating))
if (user.Configuration.MaxParentalRating == null)
{
return true;
}
return Ratings.Level(CustomRating ?? OfficialRating) <= Ratings.Level(user.Configuration.MaxParentalRating);
return Ratings.Level(CustomRating ?? OfficialRating) <= user.Configuration.MaxParentalRating.Value;
}
/// <summary>

View file

@ -10,7 +10,7 @@ namespace MediaBrowser.Model.Configuration
/// Gets or sets the max parental rating.
/// </summary>
/// <value>The max parental rating.</value>
public string MaxParentalRating { get; set; }
public int? MaxParentalRating { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [use custom library].