The Free Software Media System - Server Backend & API
Fix null parental rating comparison (#9618)
Brad Beattieba5e51700e75
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.csindex 71788a3e43..e59f2a198e 100644--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs@@ -2379,7 +2379,7 @@ namespace Emby.Server.Implementations.Dataelse{builder.Append(- @"(SELECT CASE WHEN InheritedParentalRatingValue=0+ @"(SELECT CASE WHEN COALESCE(InheritedParentalRatingValue, 0)=0THEN 0ELSE 10.0 / (1.0 + ABS(InheritedParentalRatingValue - @InheritedParentalRatingValue))END)");