diff options
author | Badlop <badlop@process-one.net> | 2009-11-26 14:46:24 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2009-11-26 14:46:24 +0000 |
commit | 3df52777281acf5ddf2e9ab6ea3045324bcdde50 (patch) | |
tree | b4bdd0d1868faca7591a31aeda0b4e589b7b02a5 | |
parent | Fix explanation of option content_types. Reorder options. (diff) |
Move get_group_name outside the loop (thanks to mikekaganski)
SVN Revision: 2762
-rw-r--r-- | src/mod_shared_roster.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_shared_roster.erl b/src/mod_shared_roster.erl index 4d323b7ee..9d4722163 100644 --- a/src/mod_shared_roster.erl +++ b/src/mod_shared_roster.erl @@ -124,11 +124,12 @@ get_user_roster(Items, US) -> SRUsers = lists:foldl( fun(Group, Acc1) -> + GroupName = get_group_name(S, Group), lists:foldl( fun(User, Acc2) -> if User == US -> Acc2; true -> dict:append(User, - get_group_name(S, Group), + GroupName, Acc2) end end, Acc1, get_group_users(S, Group)) |