diff --git a/DICUI/Utilities/DumpEnvironment.cs b/DICUI/Utilities/DumpEnvironment.cs index 7d5dc459..34310401 100644 --- a/DICUI/Utilities/DumpEnvironment.cs +++ b/DICUI/Utilities/DumpEnvironment.cs @@ -410,8 +410,7 @@ namespace DICUI.Utilities case KnownSystem.IBMPCCompatible: case KnownSystem.RainbowDisc: mappings[Template.ISBNField] = Template.OptionalValue; - string protection = GetCopyProtection(); - mappings[Template.CopyProtectionField] = (!String.IsNullOrWhiteSpace(protection) ? protection : Template.RequiredIfExistsValue); + mappings[Template.CopyProtectionField] = GetCopyProtection(); if (File.Exists(combinedBase + "_subIntention.txt")) { FileInfo fi = new FileInfo(combinedBase + "_subIntention.txt"); @@ -511,8 +510,7 @@ namespace DICUI.Utilities case KnownSystem.IBMPCCompatible: case KnownSystem.RainbowDisc: mappings[Template.ISBNField] = Template.OptionalValue; - string protection = GetCopyProtection(); - mappings[Template.CopyProtectionField] = (!String.IsNullOrWhiteSpace(protection) ? protection : Template.RequiredIfExistsValue); + mappings[Template.CopyProtectionField] = GetCopyProtection(); if (File.Exists(combinedBase + "_subIntention.txt")) { FileInfo fi = new FileInfo(combinedBase + "_subIntention.txt"); diff --git a/DICUI/Utilities/Validators.cs b/DICUI/Utilities/Validators.cs index e4fde132..2e1281c0 100644 --- a/DICUI/Utilities/Validators.cs +++ b/DICUI/Utilities/Validators.cs @@ -575,7 +575,7 @@ namespace DICUI.Utilities return ProtectionFind.Scan(path); }); - if (found == null) + if (found == null || found.Count == 0) return "None found"; return string.Join("\n", found.Select(kvp => kvp.Key + ": " + kvp.Value).ToArray());