File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Modules/CIPPCore/Public/Standards Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -151,13 +151,13 @@ function Invoke-CIPPStandardSpamFilterPolicy {
151151 }
152152
153153 # Remove optional block lists if not configured
154- if ($Settings.EnableLanguageBlockList -eq $true ) {
154+ if ($Settings.EnableLanguageBlockList -eq $true -and $Settings .LanguageBlockList.value ) {
155155 $cmdParams.Add (' EnableLanguageBlockList' , $Settings.EnableLanguageBlockList )
156156 $cmdParams.Add (' LanguageBlockList' , $Settings.LanguageBlockList.value )
157157 } else {
158158 $cmdParams.Add (' EnableLanguageBlockList' , $false )
159159 }
160- if ($Settings.EnableRegionBlockList -eq $true ) {
160+ if ($Settings.EnableRegionBlockList -eq $true -and $Settings .RegionBlockList.value ) {
161161 $cmdParams.Add (' EnableRegionBlockList' , $Settings.EnableRegionBlockList )
162162 $cmdParams.Add (' RegionBlockList' , $Settings.RegionBlockList.value )
163163 } else {
You can’t perform that action at this time.
0 commit comments