projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1672f4d
)
util.json: Fix variable name typo which broke util.json when util.array was missing.
author
Waqas Hussain
<waqas20@gmail.com>
Mon, 6 May 2013 23:42:54 +0000
(19:42 -0400)
committer
Waqas Hussain
<waqas20@gmail.com>
Mon, 6 May 2013 23:42:54 +0000
(19:42 -0400)
util/json.lua
patch
|
blob
|
history
diff --git
a/util/json.lua
b/util/json.lua
index 6251af1a0ac5b05501e9e222aa4d468587e9d286..67276765b44846fa4a846fac70829d75ae3f2a5b 100644
(file)
--- a/
util/json.lua
+++ b/
util/json.lua
@@
-17,7
+17,7
@@
local newproxy, getmetatable = newproxy, getmetatable;
local print = print;
local has_array, array = pcall(require, "util.array");
-local array_mt = hasarray and getmetatable(array()) or {};
+local array_mt = has
_
array and getmetatable(array()) or {};
--module("json")
local json = {};