2019-10-16, 01:50 PM
In global.php the usergroups cache is checked for 'joinable' which doesn't exist.
https://github.com/mybb/mybb/blob/featur...#L633-L637
If a group is joinable and needs moderation the type is set to 4 in the cache:
https://github.com/mybb/mybb/blob/featur...#L840-L845
E.g. by checking the group's cache for 'type' 4 instead of 'joinable' in global.php the message is displayed in the header:
https://github.com/mybb/mybb/blob/featur...#L633-L637
If a group is joinable and needs moderation the type is set to 4 in the cache:
https://github.com/mybb/mybb/blob/featur...#L840-L845
E.g. by checking the group's cache for 'type' 4 instead of 'joinable' in global.php the message is displayed in the header:
if(!empty($groupscache[$user['gid']]['type']) && $groupscache[$user['gid']]['type'] == 4)
{
$showjoinnotice = true;
$gids .= ",'{$user['gid']}'";
}