瀏覽代碼

fixed config save testing existence of empty path

Luke Pulverenti 12 年之前
父節點
當前提交
bae1a83f97
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs

+ 1 - 1
MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs

@@ -86,7 +86,7 @@ namespace MediaBrowser.Server.Implementations.Configuration
 
             var newIbnPath = newConfig.ItemsByNamePath;
 
-            if (!string.IsNullOrEmpty(newIbnPath)
+            if (!string.IsNullOrWhiteSpace(newIbnPath)
                 && !string.Equals(Configuration.ItemsByNamePath ?? string.Empty, newIbnPath))
             {
                 // Validate