Skip to content

Commit 7f1ed60

Browse files
contact emails
1 parent 68bbf04 commit 7f1ed60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ function Invoke-CIPPStandardMailContacts {
106106
}
107107
if ($Settings.report -eq $true) {
108108
$CurrentValue = @{
109-
marketingNotificationEmails = $CurrentInfo.marketingNotificationEmails
109+
marketingNotificationEmails = @($CurrentInfo.marketingNotificationEmails)
110110
technicalNotificationMails = @($CurrentInfo.technicalNotificationMails)
111111
contactEmail = $CurrentInfo.privacyProfile.contactEmail
112112
}
113113
$ExpectedValue = @{
114-
marketingNotificationEmails = $Contacts.MarketingContact
114+
marketingNotificationEmails = @($Contacts.MarketingContact)
115115
technicalNotificationMails = @($Contacts.SecurityContact, $Contacts.TechContact) | Where-Object { $_ -ne $null }
116116
contactEmail = $Contacts.GeneralContact
117117
}

0 commit comments

Comments
 (0)