Skip to content
Snippets Groups Projects
Commit b3a88fcf authored by Koval's avatar Koval Committed by ronaldtebrake
Browse files

Issue #3420647: Fix $variables['joined'] on preprocess template

Previously this value was never changed, so we are fixing it at the end of our preprocess function.
parent 1e62c30e
No related branches found
No related tags found
No related merge requests found
......@@ -380,6 +380,9 @@ function social_group_preprocess_group(array &$variables) {
);
}
}
// Update if user is member of a group.
$variables['joined'] = $group->hasMember($account);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment