diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-09 10:28:28 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-09 10:28:28 -0400 |
| commit | d7cc4738e64a05a6fd5ddbdf8de1354460de2c83 (patch) | |
| tree | 0ee414e25f907692976848eff3864293edcdf7c3 | |
| parent | 41fb933e5d7795e74c041e18971ce4ac568c9632 (diff) | |
fixes #254 - Can't turn off custom ImagesByName folder
| -rw-r--r-- | MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs index 81cf23093..21a6f4869 100644 --- a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs +++ b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs @@ -84,9 +84,10 @@ namespace MediaBrowser.Server.Implementations.Configuration { var newConfig = (ServerConfiguration) newConfiguration; - var newIbnPath = newConfig.ItemsByNamePath ?? string.Empty; + var newIbnPath = newConfig.ItemsByNamePath; - if (!string.Equals(Configuration.ItemsByNamePath ?? string.Empty, newIbnPath)) + if (!string.IsNullOrEmpty(newIbnPath) + && !string.Equals(Configuration.ItemsByNamePath ?? string.Empty, newIbnPath)) { // Validate if (!Directory.Exists(newIbnPath)) |
