mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 09:12:46 +01:00
fix: correct rule count initialization
This commit is contained in:
2
WELA.ps1
2
WELA.ps1
@@ -5046,10 +5046,10 @@ function AuditLogSetting {
|
||||
$ruleCounts = ""
|
||||
foreach ($level in [WELA]::Levels) {
|
||||
$count = $_.RulesCount[$level]
|
||||
if ($level -eq "informational") {
|
||||
if (-not $count) {
|
||||
$count = 0
|
||||
}
|
||||
if ($level -eq "informational") {
|
||||
$ruleCounts += "info:$([string]$count)"
|
||||
} else {
|
||||
$ruleCounts += "$($level):$($count), "
|
||||
|
||||
Reference in New Issue
Block a user