UCI API changes
[project/luci.git] / modules / admin-mini / luasrc / model / cbi / mini / dhcp.lua
index 85b2c86..e01890f 100644 (file)
@@ -58,7 +58,7 @@ time.rmempty = true
 m2 = Map("luci_ethers", translate("dhcp_leases"))
 
 local leasefn, leasefp, leases
-luci.model.uci.foreach("dhcp", "dnsmasq",
+luci.model.uci.cursor():foreach("dhcp", "dnsmasq",
  function(section)
        leasefn = section.leasefile
  end