aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-09 10:28:28 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-09 10:28:28 -0400
commitd7cc4738e64a05a6fd5ddbdf8de1354460de2c83 (patch)
tree0ee414e25f907692976848eff3864293edcdf7c3
parent41fb933e5d7795e74c041e18971ce4ac568c9632 (diff)
fixes #254 - Can't turn off custom ImagesByName folder
-rw-r--r--MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs5
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))