mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fix null parental rating comparison (#9618)
This commit is contained in:
parent
922e04dbf3
commit
ba5e51700e
@ -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)");
|
||||
|
Loading…
x
Reference in New Issue
Block a user