diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-09 00:32:36 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-09 00:32:36 +0000 |
commit | 5c4cd0c4d6543fa0428b6c7eb5d2c131d29befba (patch) | |
tree | d814b2e645881610e273249bcd3211dbcfbc1607 /libs/cbi/luasrc/view | |
parent | c70edf0f94cbe0cb25ce6c9011e0ecc15c2c1573 (diff) |
libs/cbi: fix some logic errors in firewall zone picker widget
Diffstat (limited to 'libs/cbi/luasrc/view')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/firewall_zonelist.htm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm b/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm index dcc14fb2d..d7cea4edb 100644 --- a/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm +++ b/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm @@ -51,9 +51,8 @@ $Id$ local zempty = true for _, net in ipairs(zone:get_networks()) do net = nwm:get_network(net) - zempty = false if net then - local nempty = true + zempty = false %> <%- if net:name() == self.network then -%> @@ -62,6 +61,7 @@ $Id$ <span style="background-color:#FFFFFF; border:1px solid #CCCCCC; padding:2px"><%=net:name()%>: <%- end -%> <% + local nempty = true for _, iface in ipairs(net and net:get_interfaces() or {}) do if not iface:is_bridgeport() then nempty = false |