We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e06d5e7 commit 4d6dfdbCopy full SHA for 4d6dfdb
Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSpamFilterPolicy.ps1
@@ -228,7 +228,7 @@ function Invoke-CIPPStandardSpamFilterPolicy {
228
if ($StateIsCorrect) {
229
$FieldValue = $true
230
} else {
231
- $FieldValue = $CurrentState ? $CurrentState : $false
+ $FieldValue = $CurrentState ? $CurrentState : @{ state = 'Spam filter policy not found' }
232
}
233
Set-CIPPStandardsCompareField -FieldName 'standards.SpamFilterPolicy' -FieldValue $FieldValue -Tenant $Tenant
234
0 commit comments