summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-17 14:37:53 +0000
committerSteven Barth <steven@midlink.org>2008-08-17 14:37:53 +0000
commitc0d904ac1680450a163420360b5911f156e6f3a9 (patch)
treefc9d9e23bfcdfe35789836d92ec00ac35f88a9cf /modules
parent3904a012fad31017553063d15dbc399da03dea45 (diff)
Add missing number conversion (fixed #108)
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-core/luasrc/tools/webadmin.lua2
1 files changed, 2 insertions, 0 deletions
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