FF-Wizard: Fixed a problem with custom settings
authorSteven Barth <steven@midlink.org>
Tue, 16 Sep 2008 10:08:04 +0000 (10:08 +0000)
committerSteven Barth <steven@midlink.org>
Tue, 16 Sep 2008 10:08:04 +0000 (10:08 +0000)
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua

index 7da7655d5d5a564c9d67faf10854581039cd2693..54eeb30c05d39fbdc6b5f509dcb6af1a94baaf1a 100644 (file)
@@ -164,7 +164,7 @@ function main.write(self, section, value)
        tools.firewall_zone_remove_interface("freifunk", device)
 
        -- Tune community settings
-       if community then
+       if community and uci:get("freifunk", community) then
                uci:tset("freifunk", "community", uci:get_all("freifunk", community))
        end