From d7cc4738e64a05a6fd5ddbdf8de1354460de2c83 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 9 May 2013 10:28:28 -0400 Subject: [PATCH] fixes #254 - Can't turn off custom ImagesByName folder --- .../Configuration/ServerConfigurationManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs index 81cf230938..21a6f48699 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))