* Fixed luci-splash again

This commit is contained in:
Steven Barth 2008-04-27 23:29:38 +00:00
parent 85cba95646
commit 9d8abf9c3e

View file

@ -73,7 +73,7 @@ function remove_lease(mac)
mac = mac:lower() mac = mac:lower()
for k, v in pairs(uci:show("luci_splash").luci_splash) do for k, v in pairs(uci:show("luci_splash").luci_splash) do
if v.mac:lower() == mac then if v[".type"] == "lease" and v.mac:lower() == mac then
remove_rule(mac) remove_rule(mac)
uci:del("luci_splash", k) uci:del("luci_splash", k)
end end