소스 검색

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))