mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Add an empty list of members/recipients for host pools if there is none
This commit is contained in:
parent
b47fb72129
commit
06b1bcdce0
1 changed files with 4 additions and 0 deletions
|
|
@ -273,12 +273,16 @@ function host_pools:get_pool(pool_id)
|
|||
for _, member in pairs(members) do
|
||||
member_details[member] = self:get_member_details(member)
|
||||
end
|
||||
else
|
||||
members = {}
|
||||
end
|
||||
|
||||
-- Recipients
|
||||
local recipients = self:_get_pool_detail(pool_id, "recipients")
|
||||
if recipients then
|
||||
recipients = json.decode(recipients)
|
||||
else
|
||||
recipients = {}
|
||||
end
|
||||
|
||||
local pool_details = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue