Skip to content

The Free Software Media System - Server Backend & API

update latest items display

Luke Pulverentia88327ab71d0
diff --git a/MediaBrowser.Server.Implementations/Library/UserViewManager.cs b/MediaBrowser.Server.Implementations/Library/UserViewManager.cs
index 931f9b21e6..de9bec2d78 100644
--- a/MediaBrowser.Server.Implementations/Library/UserViewManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/UserViewManager.cs
@@ -272,6 +272,11 @@ namespace MediaBrowser.Server.Implementations.Library
.ToArray();
}
+ if (parentIds.Length == 0)
+ {
+ return new List<BaseItem>();
+ }
+
var excludeItemTypes = includeItemTypes.Length == 0 ? new[]
{
typeof(Person).Name, typeof(Studio).Name, typeof(Year).Name, typeof(GameGenre).Name, typeof(MusicGenre).Name, typeof(Genre).Name