Skip to content

Commit 4d6dfdb

Browse files
committed
update report text
1 parent e06d5e7 commit 4d6dfdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSpamFilterPolicy.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function Invoke-CIPPStandardSpamFilterPolicy {
228228
if ($StateIsCorrect) {
229229
$FieldValue = $true
230230
} else {
231-
$FieldValue = $CurrentState ? $CurrentState : $false
231+
$FieldValue = $CurrentState ? $CurrentState : @{ state = 'Spam filter policy not found' }
232232
}
233233
Set-CIPPStandardsCompareField -FieldName 'standards.SpamFilterPolicy' -FieldValue $FieldValue -Tenant $Tenant
234234
}

0 commit comments

Comments
 (0)