mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fixes attempt to index nil value
This commit is contained in:
parent
d50f4ee98f
commit
5b15335ce3
2 changed files with 7 additions and 12 deletions
|
|
@ -1866,7 +1866,7 @@ end
|
|||
function addHTTPInfoToAlertDescr(msg, alert_json, url_only)
|
||||
if ((alert_json)
|
||||
and (table.len(alert_json["proto"] or {}) > 0)
|
||||
and (table.len(alert_json["proto"]["http"]) > 0)) then
|
||||
and (table.len(alert_json["proto"]["http"] or {}) > 0)) then
|
||||
|
||||
local http_info = format_http_info({ http_info = alert_json["proto"]["http"]["last_method"],
|
||||
last_return_code = alert_json["proto"]["http"]["last_return_code"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue