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

This commit is contained in:
Luke Pulverenti 2013-05-09 10:28:28 -04:00
parent 41fb933e5d
commit d7cc4738e6
1 changed files with 3 additions and 2 deletions

View File

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