diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-19 08:24:50 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-19 08:24:50 -0400 |
| commit | 3f23ee9e826fcb86ef2840e80f5125fb52e1fbb3 (patch) | |
| tree | c8d5559d9ebfe3c72742b2da41fc2c94d52b9179 /MediaBrowser.Server.Implementations/Persistence/SqliteDisplayPreferencesRepository.cs | |
| parent | e8634cbafd2c8014f47ad2d6d2d2e62b3a2f4041 (diff) | |
fixed empty user display on dashboard
Diffstat (limited to 'MediaBrowser.Server.Implementations/Persistence/SqliteDisplayPreferencesRepository.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Persistence/SqliteDisplayPreferencesRepository.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/Persistence/SqliteDisplayPreferencesRepository.cs b/MediaBrowser.Server.Implementations/Persistence/SqliteDisplayPreferencesRepository.cs index cb965c3f9..7a984fc00 100644 --- a/MediaBrowser.Server.Implementations/Persistence/SqliteDisplayPreferencesRepository.cs +++ b/MediaBrowser.Server.Implementations/Persistence/SqliteDisplayPreferencesRepository.cs @@ -20,7 +20,7 @@ namespace MediaBrowser.Server.Implementations.Persistence private SQLiteConnection _connection; private readonly ILogger _logger; - + /// <summary> /// Gets the name of the repository /// </summary> @@ -192,7 +192,7 @@ namespace MediaBrowser.Server.Implementations.Persistence var idParam = cmd.Parameters.Add("@id", DbType.Guid); idParam.Value = displayPreferencesId; - using (var reader = cmd.ExecuteReader(CommandBehavior.SequentialAccess | CommandBehavior.SingleResult | CommandBehavior.SingleRow)) + using (var reader = cmd.ExecuteReader(CommandBehavior.SequentialAccess | CommandBehavior.SingleResult | CommandBehavior.SingleRow)) { if (reader.Read()) { @@ -203,7 +203,7 @@ namespace MediaBrowser.Server.Implementations.Persistence } } - return null; + return new DisplayPreferences { Id = displayPreferencesId }; } /// <summary> |
