Skip to content

The Free Software Media System - Server Backend & API

fixed config save testing existence of empty path

Luke Pulverentibae1a83f973d
diff --git a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
index 21a6f48699..96946bdab2 100644
--- a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
+++ b/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