aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/BaseApiService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-12 10:06:08 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-12 10:06:08 -0400
commit57d7e9fccc1434d51876ab9baf23c20c80140706 (patch)
treee1c92b44dccd574c9ce5265866b328ec2e4028bc /MediaBrowser.Api/BaseApiService.cs
parent734e53e93773eb942ada3644e7f5fd3c0b16ca5c (diff)
fixes #268 - (Multicd) Albums with discnumbers in subfolders on filesystem = Multiple album objects
Diffstat (limited to 'MediaBrowser.Api/BaseApiService.cs')
-rw-r--r--MediaBrowser.Api/BaseApiService.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Api/BaseApiService.cs b/MediaBrowser.Api/BaseApiService.cs
index ee90d2134..23d9b0126 100644
--- a/MediaBrowser.Api/BaseApiService.cs
+++ b/MediaBrowser.Api/BaseApiService.cs
@@ -128,7 +128,12 @@ namespace MediaBrowser.Api
if (auth.ContainsKey("UserId"))
{
- user = UserManager.GetUserById(new Guid(auth["UserId"]));
+ var userId = auth["UserId"];
+
+ if (!string.IsNullOrEmpty(userId))
+ {
+ user = UserManager.GetUserById(new Guid(userId));
+ }
}
var deviceId = auth["DeviceId"];