Software /
code /
prosody
Diff
util/json.lua @ 5562:a6b8fb827e2a
util.json: Fix variable name typo which broke util.json when util.array was missing.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 06 May 2013 19:42:54 -0400 |
parent | 5561:52eef11cd8af |
child | 5563:678867c552d1 |
line wrap: on
line diff
--- a/util/json.lua Sun May 05 15:02:33 2013 -0400 +++ b/util/json.lua Mon May 06 19:42:54 2013 -0400 @@ -17,7 +17,7 @@ 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 = {};