mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
Handle possibly nil tables
This commit is contained in:
parent
2459794216
commit
8a8157a015
3 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ end
|
|||
function checkHostAlerts(granularity)
|
||||
local info = host.getFullInfo()
|
||||
local host_key = info.ip.."@"..info.vlan
|
||||
local host_config = config_alerts[host_key]
|
||||
local host_config = config_alerts[host_key] or {}
|
||||
local global_config = config_alerts["local_hosts"] or {}
|
||||
local has_configured_alerts = (table.len(host_config or global_confi) > 0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue