mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixes possible nil value
This commit is contained in:
parent
1f88fe593d
commit
5dff1657df
1 changed files with 3 additions and 1 deletions
|
|
@ -1179,7 +1179,9 @@ function add_historical_flow_explorer_button_ref(extra_params, no_href)
|
|||
local base_url = ntop.getHttpPrefix() .. "/lua/pro/db_search.lua?"
|
||||
|
||||
for k, v in pairs(extra_params) do
|
||||
base_url = base_url .. k .. "=" .. v["value"] .. ";" .. v["operator"] .. "&"
|
||||
if v["value"] and v["operator"] then
|
||||
base_url = base_url .. k .. "=" .. v["value"] .. ";" .. v["operator"] .. "&"
|
||||
end
|
||||
end
|
||||
|
||||
base_url = base_url:sub(1, -2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue