mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Added non null check
This commit is contained in:
parent
dc24919182
commit
6ec9b42771
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ local function format_historical_issue_description(alert, alert_id, score, title
|
|||
end
|
||||
|
||||
if alert_scores and alert_scores[alert_id] then
|
||||
score = alert_scores[alert_id]
|
||||
score = alert_scores[alert_id] or 0
|
||||
end
|
||||
-- If alert risk is 0 then it comes from ntonpg, else nDPI
|
||||
local alert_risk = ntop.getFlowAlertRisk(tonumber(alert_id))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue