Explorar o código

Fix null parental rating comparison (#9618)

Brad Beattie %!s(int64=2) %!d(string=hai) anos
pai
achega
ba5e51700e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Emby.Server.Implementations/Data/SqliteItemRepository.cs

+ 1 - 1
Emby.Server.Implementations/Data/SqliteItemRepository.cs

@@ -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)");