* 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 ff876c3..1520491 100644 (file)
@@ -145,7 +145,7 @@ function sync()
        
        
        -- For all leases
        
        
        -- 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
                if v[".type"] == "lease" then
                        if os.difftime(time, tonumber(v.start)) > leasetime then
                                -- Remove expired