mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
util.json: Fix variable name typo which broke util.json when util.array was missing.
This commit is contained in:
parent
8098be4eb1
commit
eed78bab7e
1 changed files with 1 additions and 1 deletions
|
@ -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 = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue