git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9067 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof 2008-11-21 13:21:53 +00:00
parent 4a38e5cc3f
commit bbfe3b0b7b
2 changed files with 5 additions and 3 deletions

View file

@ -51,7 +51,7 @@ class ucp_activate
trigger_error('ALREADY_ACTIVATED');
}
if ($user_row['user_actkey'] != $key)
if (($user_row['user_inactive_reason'] == INACTIVE_MANUAL) || $user_row['user_actkey'] != $key)
{
trigger_error('WRONG_ACTIVATION');
}

View file

@ -414,6 +414,9 @@ class ucp_groups
$this->page_title = 'UCP_USERGROUPS_MANAGE';
$action = (isset($_POST['addusers'])) ? 'addusers' : request_var('action', '');
$group_id = request_var('g', 0);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
add_form_key('ucp_groups');
if ($group_id)
@ -438,6 +441,7 @@ class ucp_groups
$group_name = $group_row['group_name'];
$group_type = $group_row['group_type'];
$avatar_img = (!empty($group_row['group_avatar'])) ? get_user_avatar($group_row['group_avatar'], $group_row['group_avatar_type'], $group_row['group_avatar_width'], $group_row['group_avatar_height'], 'GROUP_AVATAR') : '<img src="' . $phpbb_root_path . 'adm/images/no_avatar.gif" alt="" />';
$template->assign_vars(array(
@ -458,8 +462,6 @@ class ucp_groups
{
case 'edit':
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
if (!$group_id)
{
trigger_error($user->lang['NO_GROUP'] . $return_page);