mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixes nil ifid (#6793)
This commit is contained in:
parent
ccc7743118
commit
4414e1971d
1 changed files with 4 additions and 2 deletions
|
|
@ -18,8 +18,10 @@ sendHTTPContentTypeHeader('application/json')
|
|||
|
||||
local ifid = _GET["ifid"]
|
||||
|
||||
if not isEmptyString(ifid) then
|
||||
interface.select(ifid)
|
||||
if (ifid) and (not isEmptyString(ifid)) then
|
||||
interface.select(ifid)
|
||||
else
|
||||
ifid = interface.getId()
|
||||
end
|
||||
|
||||
local ifstats = interface.getStats()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue