diff options
author | spag <spag@golwen.net> | 2013-01-17 12:03:09 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-17 12:03:09 +0100 |
commit | 4bf20d36ed26746e0a7b2fc551e57337c8788c86 (patch) | |
tree | 76b6df0b61c2937fe6722f14c79f65312beef5c3 /misc/freeswitch/scripts/dialplan | |
parent | 0a3a4c78badb80e7f0f7b5d372421f1e75fd5f02 (diff) |
array vs. hash
Diffstat (limited to 'misc/freeswitch/scripts/dialplan')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/user.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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; |