aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2013-05-06 19:42:54 -0400
committerWaqas Hussain <waqas20@gmail.com>2013-05-06 19:42:54 -0400
commiteed78bab7e19005ff89e34d46960cf25e9ac8e4a (patch)
tree564fce415bee6b928794c49068fe7c31c9c352f2
parent8098be4eb1e9a10f967398196407c39d2cb5ef46 (diff)
downloadprosody-eed78bab7e19005ff89e34d46960cf25e9ac8e4a.tar.gz
prosody-eed78bab7e19005ff89e34d46960cf25e9ac8e4a.zip
util.json: Fix variable name typo which broke util.json when util.array was missing.
-rw-r--r--util/json.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/json.lua b/util/json.lua
index 6251af1a..67276765 100644
--- 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 = {};