Skip to content

Commit 988edda

Browse files
added update now button
1 parent 1fa4eb6 commit 988edda

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/Invoke-ListBreachesTenant.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ Function Invoke-ListBreachesTenant {
1818
$filter = $null
1919
}
2020
$usersResults = (Get-CIPPAzDataTableEntity @Table -Filter $filter).breaches | ConvertFrom-Json -ErrorAction SilentlyContinue
21-
21+
if ($usersResults -eq $null) {
22+
$usersResults = @()
23+
}
2224
# Associate values to output bindings by calling 'Push-OutputBinding'.
2325
Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
2426
StatusCode = [HttpStatusCode]::OK

0 commit comments

Comments
 (0)