UCI API changes
[project/luci.git] / applications / luci-fw / luasrc / model / cbi / luci_fw / firewall.lua
index 2919896..51ec445 100644 (file)
@@ -24,7 +24,7 @@ iface.rmempty = true
 oface = s:option(ListValue, "dest")
 oface.optional = true
 
-luci.model.uci.foreach("firewall", "zone",
+luci.model.uci.cursor():foreach("firewall", "zone",
        function (section)
                iface:value(section.name)
                oface:value(section.name)