* Fixed luci-splash again
authorSteven Barth <steven@midlink.org>
Sun, 27 Apr 2008 23:29:38 +0000 (23:29 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 27 Apr 2008 23:29:38 +0000 (23:29 +0000)
contrib/package/ffluci-splash/src/luci-splash.lua

index 72b63494c5b1ae8adee72a443d043ac879bb5103..ff876c3fd02e421850c27ca9afc4308f84b8c7ec 100644 (file)
@@ -73,7 +73,7 @@ function remove_lease(mac)
        mac = mac:lower()
 
        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)
                        uci:del("luci_splash", k)
                end