mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 08:45:23 +03:00
Fix null parental rating comparison (#9618)
This commit is contained in:
@@ -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)");
|
||||
|
||||
Reference in New Issue
Block a user