Elgg/Elgg — pull request #5555 by jeabakker (2013-05-30 09:29:04+00:00)
Title: get_user_membership could return more than groups

According to the function documentation get_user_membership it should return all groups the user is a member of.

However since the 'type' isn't limited to 'group' it could potentially return more than just groups.

Here is the fix