Skip to content

The Free Software Media System - Server Backend & API

Add else

Bond-00994edb5b9f98c
diff --git a/Emby.Dlna/ContentDirectory/ControlHandler.cs b/Emby.Dlna/ContentDirectory/ControlHandler.cs
index 438ca39ea7..4f74bb222e 100644
--- a/Emby.Dlna/ContentDirectory/ControlHandler.cs
+++ b/Emby.Dlna/ContentDirectory/ControlHandler.cs
@@ -1278,6 +1278,7 @@ namespace Emby.Dlna.ContentDirectory
{
query.OrderBy = Array.Empty<(string, SortOrder)>();
}
+ else
{
query.OrderBy = new[] { (ItemSortBy.SortName, sort.SortOrder) };
}