Fix null parental rating comparison (#9618)

This commit is contained in:
Brad Beattie
2023-04-16 10:09:54 -07:00
committed by GitHub
parent 922e04dbf3
commit ba5e51700e

View File

@@ -2379,7 +2379,7 @@ namespace Emby.Server.Implementations.Data
else
{
builder.Append(
@"(SELECT CASE WHEN InheritedParentalRatingValue=0
@"(SELECT CASE WHEN COALESCE(InheritedParentalRatingValue, 0)=0
THEN 0
ELSE 10.0 / (1.0 + ABS(InheritedParentalRatingValue - @InheritedParentalRatingValue))
END)");