From: Steven Barth Date: Sun, 27 Apr 2008 23:29:38 +0000 (+0000) Subject: * Fixed luci-splash again X-Git-Tag: 0.8.0~1091 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9d8abf9c3e1aa7ae12ac9fe3bb4f6b3f86633d20;p=oweals%2Fluci.git * Fixed luci-splash again --- diff --git a/contrib/package/ffluci-splash/src/luci-splash.lua b/contrib/package/ffluci-splash/src/luci-splash.lua index 72b63494c..ff876c3fd 100644 --- a/contrib/package/ffluci-splash/src/luci-splash.lua +++ b/contrib/package/ffluci-splash/src/luci-splash.lua @@ -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