Преглед на файлове

fixes #254 - Can't turn off custom ImagesByName folder

Luke Pulverenti преди 12 години
родител
ревизия
d7cc4738e6
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs

+ 3 - 2
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))