mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Possible fix for attempt to index a string value
This commit is contained in:
parent
785ac74633
commit
8076ddc67f
1 changed files with 1 additions and 1 deletions
|
|
@ -1526,7 +1526,7 @@ end
|
|||
|
||||
function addBytesInfoToAlertDescr(msg, value, json_format)
|
||||
if json_format then
|
||||
if isEmptyString(msg) then
|
||||
if type(msg) == "string" then
|
||||
msg = {}
|
||||
end
|
||||
msg["server_traffic"] = value["srv2cli_bytes"] or 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue