mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Added check
This commit is contained in:
parent
e1328ae36b
commit
ab12565da2
1 changed files with 7 additions and 5 deletions
|
|
@ -740,12 +740,14 @@ function format_utils.format_name_value(name, value, shorten)
|
|||
end
|
||||
end
|
||||
|
||||
local idx = string.find(formatted_name_value, value)
|
||||
|
||||
if (idx == nil) then
|
||||
formatted_name_value = formatted_name_value .. " [" .. value .. "]"
|
||||
if(value ~= nil) then
|
||||
local idx = string.find(formatted_name_value, value)
|
||||
|
||||
if (idx == nil) then
|
||||
formatted_name_value = formatted_name_value .. " [" .. value .. "]"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return formatted_name_value
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue