File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,9 @@ function Compare-CIPPIntuneObject {
244244 $child.choiceSettingValue.value
245245 }
246246 }
247+ if (! $childValue -and $null -ne $child.simpleSettingValue -and $null -ne $child.simpleSettingValue.value ) {
248+ $childValue = $child.simpleSettingValue.value
249+ }
247250
248251 # Add object to our temporary list
249252 [PSCustomObject ]@ {
@@ -337,9 +340,9 @@ function Compare-CIPPIntuneObject {
337340 } else {
338341 $child.choiceSettingValue.value
339342 }
340- if ( ! $childValue -and $child .simpleSettingValue.value ) {
341- $childValue = $child.simpleSettingValue.value
342- }
343+ }
344+ if ( ! $childValue -and $null -ne $child .simpleSettingValue -and $null -ne $child.simpleSettingValue.value ) {
345+ $childValue = $child .simpleSettingValue.value
343346 }
344347
345348 # Add object to our temporary list
You can’t perform that action at this time.
0 commit comments