mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix issue when adding new builtin category lists
This commit is contained in:
parent
67f212b866
commit
62e2c67672
1 changed files with 4 additions and 5 deletions
|
|
@ -83,15 +83,14 @@ local function loadListsFromRedis()
|
|||
end
|
||||
|
||||
local status = json.decode(lists_status)
|
||||
local lists
|
||||
local lists = {}
|
||||
|
||||
if isEmptyString(lists_metadata) then
|
||||
-- no custom settings, use builtins
|
||||
lists = table.clone(BUILTIN_LISTS)
|
||||
else
|
||||
if not isEmptyString(lists_metadata) then
|
||||
lists = json.decode(lists_metadata)
|
||||
end
|
||||
|
||||
lists = table.merge(BUILTIN_LISTS, lists)
|
||||
|
||||
if((lists == nil) or (status == nil)) then
|
||||
return {}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue