From: Steven Barth Date: Wed, 30 Apr 2008 19:33:48 +0000 (+0000) Subject: * Fixed a bug in Luci Splash where splash leases were deleted after the next sync... X-Git-Tag: 0.8.0~1083 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6cf7a284ef440e5b59efc5ffe69e3b1f28a6b646;p=project%2Fluci.git * Fixed a bug in Luci Splash where splash leases were deleted after the next sync although they are not outdated --- diff --git a/contrib/package/ffluci-splash/src/luci-splash.lua b/contrib/package/ffluci-splash/src/luci-splash.lua index ff876c3fd0..1520491e02 100644 --- a/contrib/package/ffluci-splash/src/luci-splash.lua +++ b/contrib/package/ffluci-splash/src/luci-splash.lua @@ -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