summaryrefslogtreecommitdiffhomepage
path: root/modules/rpc/luasrc/jsonrpc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/rpc/luasrc/jsonrpc.lua')
-rw-r--r--modules/rpc/luasrc/jsonrpc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/rpc/luasrc/jsonrpc.lua b/modules/rpc/luasrc/jsonrpc.lua
index 84a7f7056c..c4fed2accb 100644
--- a/modules/rpc/luasrc/jsonrpc.lua
+++ b/modules/rpc/luasrc/jsonrpc.lua
@@ -23,12 +23,12 @@ function resolve(mod, method)
if not type(mod) == "table" then
break
end
- mod = mod[path[j]]
+ mod = rawget(mod, path[j])
if not mod then
break
end
end
- mod = type(mod) == "table" and mod[path[#path]] or nil
+ mod = type(mod) == "table" and rawget(mod, path[#path]) or nil
if type(mod) == "function" then
return mod
end