fixed config save

pull/702/head
Luke Pulverenti 12 years ago
parent 8217bafb24
commit 98e8b73d81

@ -84,10 +84,12 @@ namespace MediaBrowser.Server.Implementations.Configuration
{
var newConfig = (ServerConfiguration) newConfiguration;
if (!string.Equals(Configuration.ItemsByNamePath, newConfig.ItemsByNamePath))
var newIbnPath = newConfig.ItemsByNamePath ?? string.Empty;
if (!string.Equals(Configuration.ItemsByNamePath ?? string.Empty, newIbnPath))
{
// Validate
if (!Directory.Exists(newConfig.ItemsByNamePath))
if (!Directory.Exists(newIbnPath))
{
throw new DirectoryNotFoundException(string.Format("{0} does not exist.", newConfig.ItemsByNamePath));
}

Loading…
Cancel
Save