summaryrefslogtreecommitdiffhomepage
path: root/modules/rpc/luasrc/jsonrpc.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-26 00:53:28 +0000
committerSteven Barth <steven@midlink.org>2008-08-26 00:53:28 +0000
commit0c5dc7bc77a4fd7d7f0d965e3185e2df4c608f05 (patch)
treeb6a3a5fd860f43a171ebdb4446974489f4dbbb0b /modules/rpc/luasrc/jsonrpc.lua
parent8e6d1e682afee81fb4199ad494195c23e4381af5 (diff)
libs/core: Reworked some basic libraries to not use package.seeall
libs/json: Implemented own JSON-Decoder (Encoder will follow) modules/rpc: Preliminary implemented RPC-Exports for luci.fs, luci.sys and luci.model.uci
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 84a7f7056..c4fed2acc 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