Commit 47ae500a authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

fixing when invite shows up on profile page

parent 61af8176
......@@ -182,13 +182,13 @@ for ($i = 0; $i < 4; $i++) {
}
$smarty = smarty();
$allusergroups = get_associated_groups($userid);
if ($loggedinid != $userid) {
// Get the logged in user's "invite only" groups
if ($groups = get_owned_groups($loggedinid, 'invite')) {
$invitelist = array();
foreach ($groups as $group) {
if (array_key_exists($group->id, $userassocgroups)) {
if (array_key_exists($group->id, $allusergroups)) {
continue;
}
$invitelist[$group->id] = $group->name;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment