From bfd45c060497e0981ffcb9bda1a9ab822081951a Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Thu, 27 Oct 2022 19:15:49 +0200 Subject: [PATCH] Fixes #35 --- Public/Invoke-GPOZaurr.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Public/Invoke-GPOZaurr.ps1 b/Public/Invoke-GPOZaurr.ps1 index 48ddc0e..7984c49 100644 --- a/Public/Invoke-GPOZaurr.ps1 +++ b/Public/Invoke-GPOZaurr.ps1 @@ -203,7 +203,7 @@ } # Split reports are handled above so we skip if this was set - if ($Type.Count -gt 1) { + if ($null -eq $Type -or $Type.Count -gt 1) { New-HTMLReportAll -FilePath $FilePath -Online:$Online -HideHTML:$HideHTML -Type $Type } else { New-HTMLReportWithSplit -FilePath $FilePath -Online:$Online -HideHTML:$HideHTML