From 4bf20d36ed26746e0a7b2fc551e57337c8788c86 Mon Sep 17 00:00:00 2001 From: spag Date: Thu, 17 Jan 2013 12:03:09 +0100 Subject: array vs. hash --- misc/freeswitch/scripts/dialplan/user.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/freeswitch/scripts/dialplan/user.lua') diff --git a/misc/freeswitch/scripts/dialplan/user.lua b/misc/freeswitch/scripts/dialplan/user.lua index 3b483c8..0a2e0dd 100644 --- a/misc/freeswitch/scripts/dialplan/user.lua +++ b/misc/freeswitch/scripts/dialplan/user.lua @@ -62,7 +62,7 @@ function User.list_groups(self, id) local groups = {}; self.database:query(sql_query, function(entry) - groups[common.str.downcase(entry.name)] = true; + table.insert(groups, common.str.downcase(entry.name)); end); return groups; -- cgit v1.2.3