if ( $save == 1)
{
	if ( is_array($_POST['autoforum_sub_groups']) )
	{
		$_POST['autoforum_sub_groups'] = implode(",",$_POST['autoforum_sub_groups']);
	}
	else
	{
		$_POST['autoforum_sub_groups'] = "";
	}
	
	if( $this->ipsclass->member['mgroup'] != $this->ipsclass->vars['admin_group'] )
	{
		$previous = explode( ',', $this->ipsclass->vars['autoforum_sub_groups'] );
		
		if( in_array( $this->ipsclass->vars['admin_group'], $previous ) )
		{
			$_POST['autoforum_sub_groups'] .= ',' . $this->ipsclass->vars['admin_group'];
			$_POST['autoforum_sub_groups'] = $this->ipsclass->trim_leading_comma( $_POST['autoforum_sub_groups'] );
		}
	}
	
	$key = 'autoforum_sub_groups';
}
if ( $show == 1 )
{
    $key='autoforum_sub_groups[]';
}