Skip to content

Commit 261d9b0

Browse files
authored
Merge pull request #438 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 699b256 + 815cb33 commit 261d9b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Modules/CIPPCore/Public/Alerts/Get-CIPPAlertQuotaUsed.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function Get-CIPPAlertQuotaUsed {
1717
return
1818
}
1919
$OverQuota = $AlertData | ForEach-Object {
20-
if ($_.StorageUsedInBytes -eq 0 -or $_.prohibitSendReceiveQuotaInBytes -eq 0) { return }
20+
if ([string]::IsNullOrEmpty($_.StorageUsedInBytes) -or [string]::IsNullOrEmpty($_.prohibitSendReceiveQuotaInBytes) -or $_.StorageUsedInBytes -eq 0 -or $_.prohibitSendReceiveQuotaInBytes -eq 0) { return }
2121
try {
2222
$PercentLeft = [math]::round(($_.storageUsedInBytes / $_.prohibitSendReceiveQuotaInBytes) * 100)
2323
} catch { $PercentLeft = 100 }

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/GDAP/Invoke-ListGDAPAccessAssignments.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Invoke-ListGDAPAccessAssignments {
3232
'method' = 'GET'
3333
}
3434
}
35-
$Members = New-GraphBulkRequest -Requests $ContainerMembers -tenantid $TenantFilter -asApp $true -NoAuthCheck $true
35+
$Members = New-GraphBulkRequest -Requests @($ContainerMembers) -tenantid $TenantFilter -asApp $true -NoAuthCheck $true
3636

3737
$Results = foreach ($AccessAssignment in $AccessAssignments) {
3838
[PSCustomObject]@{

0 commit comments

Comments
 (0)