The Free Software Media System - Server Backend & API
fixes #254 - Can't turn off custom ImagesByName folder
Luke Pulverentid7cc4738e64a
diff --git a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.csindex 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)){// Validateif (!Directory.Exists(newIbnPath))