util.pluginloader: Return full file path from internal file loader on success, not...
[prosody.git] / util / multitable.lua
index c0bb2205d816bd312ca3b91704e89b37b9a8e80a..66b9bd8aba1a90481d80efcaa056773552a61f60 100644 (file)
@@ -1,6 +1,6 @@
--- Prosody IM v0.4
--- Copyright (C) 2008-2009 Matthew Wild
--- Copyright (C) 2008-2009 Waqas Hussain
+-- Prosody IM
+-- Copyright (C) 2008-2010 Matthew Wild
+-- Copyright (C) 2008-2010 Waqas Hussain
 -- 
 -- This project is MIT/X11 licensed. Please see the
 -- COPYING file in the source package for more information.
@@ -56,7 +56,7 @@ local function r(t, n, _end, ...)
                return;
        end
        if k then
-               v = t[k];
+               local v = t[k];
                if v then
                        r(v, n+1, _end, ...);
                        if not next(v) then
@@ -96,7 +96,7 @@ local function s(t, n, results, _end, ...)
                return;
        end
        if k then
-               v = t[k];
+               local v = t[k];
                if v then
                        s(v, n+1, results, _end, ...);
                end