FF-Wizard: Fixed a problem with custom settings
[project/luci.git] / applications / luci-ffwizard-leipzig / luasrc / model / cbi / ffwizard.lua
index 7da7655..54eeb30 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