util.json: Fix variable name typo which broke util.json when util.array was missing.
authorWaqas Hussain <waqas20@gmail.com>
Mon, 06 May 2013 19:42:54 -0400
changeset 5562 a6b8fb827e2a
parent 5561 52eef11cd8af
child 5563 678867c552d1
util.json: Fix variable name typo which broke util.json when util.array was missing.
util/json.lua
--- 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 = {};