aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-08-03 09:24:39 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-08-03 09:24:39 -0400
commite9722763b4291af21839b4bb071e919533a50d95 (patch)
tree7d1cf55206676ccc267bc8c5dfe5cd9bb18d7bc3 /MediaBrowser.Server.Implementations/Library/LibraryManager.cs
parent0e4972f7e63002fb3a4caeb96bafd097bc1ed56b (diff)
fixed an issue getting collection type
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/LibraryManager.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index 230cee47f..26cada6cc 100644
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
@@ -1456,9 +1456,10 @@ namespace MediaBrowser.Server.Implementations.Library
})
.Select(i => i.CollectionType)
.Where(i => !string.IsNullOrEmpty(i))
- .Distinct();
+ .Distinct()
+ .ToList();
- return collectionTypes.SingleOrDefault();
+ return collectionTypes.Count == 1 ? collectionTypes[0] : null;
}
}
}