applications/luci-statistics: cope with rules having no target in iptables plugin config

This commit is contained in:
Jo-Philipp Wich 2011-08-22 20:52:31 +00:00
parent 015d95e3f4
commit bbd5aa1831

View file

@ -20,9 +20,11 @@ chains = { }
targets = { }
for i, rule in ipairs( ip:find() ) do
if rule.chain and rule.target then
chains[rule.chain] = true
targets[rule.target] = true
end
end
m = Map("luci_statistics",