mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add nil check
This commit is contained in:
parent
8b7d711a36
commit
a237231fe3
1 changed files with 4 additions and 0 deletions
|
|
@ -1337,6 +1337,10 @@ function user_scripts.getTargetConfig(configsets, subdir, target)
|
|||
|
||||
local conf = fast_target_lookup[target] or configsets[user_scripts.DEFAULT_CONFIGSET_ID]
|
||||
|
||||
if(conf == nil) then
|
||||
return({})
|
||||
end
|
||||
|
||||
return(conf.config[subdir] or {})
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue