From c0d904ac1680450a163420360b5911f156e6f3a9 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 17 Aug 2008 14:37:53 +0000 Subject: Add missing number conversion (fixed #108) --- modules/admin-core/luasrc/tools/webadmin.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') diff --git a/modules/admin-core/luasrc/tools/webadmin.lua b/modules/admin-core/luasrc/tools/webadmin.lua index 1fda11eea..7f123ec4d 100644 --- a/modules/admin-core/luasrc/tools/webadmin.lua +++ b/modules/admin-core/luasrc/tools/webadmin.lua @@ -34,6 +34,8 @@ function date_format(secs) local mins = 0 local hour = 0 local days = 0 + + secs = math.floor(tonumber(secs)) if secs > 60 then mins = math.floor(secs / 60) secs = secs % 60 -- cgit v1.2.3