mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 17:22:50 +01:00
fix: level order
This commit is contained in:
4
WELA.ps1
4
WELA.ps1
@@ -1014,7 +1014,7 @@ function AuditLogSetting {
|
||||
$_ | Add-Member -MemberType NoteProperty -Name TotalRuleByLevel -Value ""
|
||||
$ruleCounts = ""
|
||||
foreach ($level in [WELA]::Levels) {
|
||||
$count = $this.RulesCount[$level]
|
||||
$count = $_.RulesCount[$level]
|
||||
if ($level -eq "informational") {
|
||||
$ruleCounts += "info:$count"
|
||||
} else {
|
||||
@@ -1032,7 +1032,7 @@ function AuditLogSetting {
|
||||
$_ | Add-Member -MemberType NoteProperty -Name TotalRuleByLevel -Value ""
|
||||
$ruleCounts = ""
|
||||
foreach ($level in [WELA]::Levels) {
|
||||
$count = $this.RulesCount[$level]
|
||||
$count = $_.RulesCount[$level]
|
||||
if ($level -eq "informational") {
|
||||
$ruleCounts += "info:$count"
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user