diff options
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r-- | lualib/lua_redis.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index a23ad781f..aab0fc8f1 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -225,7 +225,7 @@ local process_cmd = { eval = function(args) local idx_l = {} local numkeys = args[2] - if numkeys >= 1 then + if numkeys and tonumber(numkeys) >= 1 then for i = 3, numkeys + 2 do table.insert(idx_l, i) end |