Skip to content

Commit

Permalink
Added true if null or not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
OfficialEsco committed Apr 21, 2024
1 parent 3023167 commit 503c41a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ function Invoke-CIPPStandardMalwareFilterPolicy {
($CurrentState.ZapEnabled -eq $true) -and
($CurrentState.QuarantineTag -eq $Settings.QuarantineTag) -and
($CurrentState.EnableInternalSenderAdminNotifications -eq $Settings.EnableInternalSenderAdminNotifications) -and
($CurrentState.InternalSenderAdminAddress -eq $Settings.InternalSenderAdminAddress) -and
(($null -eq $Settings.InternalSenderAdminAddress) -or ($CurrentState.InternalSenderAdminAddress -eq $Settings.InternalSenderAdminAddress)) -and
($CurrentState.EnableExternalSenderAdminNotifications -eq $Settings.EnableExternalSenderAdminNotifications) -and
($CurrentState.ExternalSenderAdminAddress -eq $Settings.ExternalSenderAdminAddress)
(($null -eq $Settings.ExternalSenderAdminAddress) -or ($CurrentState.ExternalSenderAdminAddress -eq $Settings.ExternalSenderAdminAddress))

if ($Settings.remediate) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function Invoke-CIPPStandardSafeAttachmentPolicy {
($CurrentState.Enable -eq $true) -and
($CurrentState.QuarantineTag -eq $Settings.QuarantineTag) -and
($CurrentState.Redirect -eq $Settings.Redirect) -and
($CurrentState.RedirectAddress -eq $Settings.RedirectAddress)
(($null -eq $Settings.RedirectAddress) -or ($CurrentState.RedirectAddress -eq $Settings.RedirectAddress))

if ($Settings.remediate) {

Expand Down

0 comments on commit 503c41a

Please sign in to comment.