libs/core: Reworked some basic libraries to not use package.seeall
[project/luci.git] / modules / rpc / luasrc / jsonrpc.lua
index 84a7f70..c4fed2a 100644 (file)
@@ -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