File tree Expand file tree Collapse file tree
Modules/CIPPCore/Public/Standards Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -242,12 +242,10 @@ function Invoke-CIPPStandardGroupTemplate {
242242 }
243243
244244 $CurrentValue = @ {
245- ExistingGroups = $existingGroups.displayName
246- MissingGroups = @ ($MissingGroups )
245+ MissingGroups = $MissingGroups ? @ ($MissingGroups ) : @ ()
247246 }
248247 $ExpectedValue = @ {
249- ExistingGroups = $GroupTemplates.displayName
250- MissingGroups = @ ()
248+ MissingGroups = @ ()
251249 }
252250
253251 Set-CIPPStandardsCompareField - FieldName ' standards.GroupTemplate' - CurrentValue $CurrentValue - ExpectedValue $ExpectedValue - TenantFilter $Tenant
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ function Invoke-CIPPStandardSpoofWarn {
139139 }
140140 $ExpectedValue = @ {
141141 Enabled = $IsEnabled
142- AllowList = @ ( $Settings.AllowListAdd.value ?? $Settings.AllowListAdd ?? @ () )
142+ AllowList = $Settings.AllowListAdd.value ? @ ( $Settings.AllowListAdd.value ) : @ ()
143143 IsCompliant = $true
144144 }
145145 Set-CIPPStandardsCompareField - FieldName ' standards.SpoofWarn' - CurrentValue $CurrentValue - ExpectedValue $ExpectedValue - Tenant $Tenant
Original file line number Diff line number Diff line change @@ -225,9 +225,9 @@ function Invoke-CIPPStandardUserSubmissions {
225225 ReportJunkToCustomizedAddress = if ([string ]::IsNullOrWhiteSpace($Email )) { $false } else { $true }
226226 ReportNotJunkToCustomizedAddress = if ([string ]::IsNullOrWhiteSpace($Email )) { $false } else { $true }
227227 ReportPhishToCustomizedAddress = if ([string ]::IsNullOrWhiteSpace($Email )) { $false } else { $true }
228- ReportJunkAddresses = if ([string ]::IsNullOrWhiteSpace($Email )) { $null } else { $Email }
229- ReportNotJunkAddresses = if ([string ]::IsNullOrWhiteSpace($Email )) { $null } else { $Email }
230- ReportPhishAddresses = if ([string ]::IsNullOrWhiteSpace($Email )) { $null } else { $Email }
228+ ReportJunkAddresses = if ([string ]::IsNullOrWhiteSpace($Email )) { $null } else { @ ( $Email ) }
229+ ReportNotJunkAddresses = if ([string ]::IsNullOrWhiteSpace($Email )) { $null } else { @ ( $Email ) }
230+ ReportPhishAddresses = if ([string ]::IsNullOrWhiteSpace($Email )) { $null } else { @ ( $Email ) }
231231 RuleState = if ([string ]::IsNullOrWhiteSpace($Email )) {
232232 @ {
233233 State = ' Disabled'
@@ -236,7 +236,7 @@ function Invoke-CIPPStandardUserSubmissions {
236236 } else {
237237 @ {
238238 State = ' Enabled'
239- SentTo = $Email
239+ SentTo = @ ( $Email )
240240 }
241241 }
242242 }
You can’t perform that action at this time.
0 commit comments