projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libs/core: Reworked some basic libraries to not use package.seeall
[project/luci.git]
/
modules
/
rpc
/
luasrc
/
jsonrpc.lua
diff --git
a/modules/rpc/luasrc/jsonrpc.lua
b/modules/rpc/luasrc/jsonrpc.lua
index
84a7f70
..
c4fed2a
100644
(file)
--- 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
if not type(mod) == "table" then
break
end
- mod =
mod[path[j]]
+ mod =
rawget(mod, path[j])
if not mod then
break
end
end
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
if type(mod) == "function" then
return mod
end