From: Steven Barth Date: Sun, 17 Aug 2008 14:37:53 +0000 (+0000) Subject: Add missing number conversion (fixed #108) X-Git-Tag: 0.8.0~388 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c0d904ac1680450a163420360b5911f156e6f3a9;p=oweals%2Fluci.git Add missing number conversion (fixed #108) --- 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