function M_Roles_leftsub($fromsub_id, $fromlevel_id, $user_id) { M_Roles_leftlevel($fromlevel_id, $user_id); $member =& new M_Membership($user_id); if (!$member->has_levels()) { if (method_exists($member, 'has_cap') && !$member->has_cap('activate_plugins')) { $member->set_role(get_option('default_role')); } } }
function M_Roles_leftsub($fromsub_id, $fromlevel_id, $user_id) { M_Roles_leftlevel($fromlevel_id, $user_id); $member =& new M_Membership($user_id); if (!$member->has_levels()) { $member->set_role(get_option('default_role')); } }