* Fixed a bug in Luci Splash where splash leases were deleted after the next sync...
authorSteven Barth <steven@midlink.org>
Wed, 30 Apr 2008 19:33:48 +0000 (19:33 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 30 Apr 2008 19:33:48 +0000 (19:33 +0000)
contrib/package/ffluci-splash/src/luci-splash.lua

index ff876c3fd02e421850c27ca9afc4308f84b8c7ec..1520491e026f7af8ff9c713dda63439946f57f2e 100644 (file)
@@ -145,7 +145,7 @@ function sync()
        
        
        -- For all leases
-       for k, v in pairs(uci:show("luci_splash")) do
+       for k, v in pairs(leases) do
                if v[".type"] == "lease" then
                        if os.difftime(time, tonumber(v.start)) > leasetime then
                                -- Remove expired