libs/cbi: comply with changed firewall interface

This commit is contained in:
Jo-Philipp Wich 2009-10-08 01:26:09 +00:00
parent c7f225b133
commit 6c64745e2c

View file

@ -22,7 +22,7 @@ $Id$
wbi.init(self.map.uci) wbi.init(self.map.uci)
local zone, iface, ifname local zone, iface, ifname
local zones = fwm.get_zones() local zones = fwm:get_zones()
local value = self:cfgvalue(section) or self.default local value = self:cfgvalue(section) or self.default
if value and #value == 0 then value = nil end if value and #value == 0 then value = nil end