phpBB

Code Changes

File: includes/acp/acp_groups.php

  Unmodified   Added   Modified   Removed
Line 187Line 187

group_user_attributes('default', $group_id, $mark_ary, false, $group_name, $group_row);



group_user_attributes('default', $group_id, $mark_ary, false, $group_name, $group_row);


							$start = (sizeof($mark_ary) < 200) ? 0 : $start + 200;

							$start = (count($mark_ary) < 200) ? 0 : $start + 200;

						}
else
{

						}
else
{

Line 486Line 486
						$error = array_merge($error, $validation_error);
}


						$error = array_merge($error, $validation_error);
}


					if (!sizeof($error))

					if (!count($error))

					{
// Only set the rank, colour, etc. if it's changed or if we're adding a new
// group. This prevents existing group members being updated if no changes

					{
// Only set the rank, colour, etc. if it's changed or if we're adding a new
// group. This prevents existing group members being updated if no changes

Line 614Line 614
						}
}


						}
}


					if (sizeof($error))

					if (count($error))

					{
$error = array_map(array(&$user, 'lang'), $error);
$group_rank = $submit_ary['rank'];

					{
$error = array_map(array(&$user, 'lang'), $error);
$group_rank = $submit_ary['rank'];

Line 732Line 732
					'S_ADD_GROUP'		=> ($action == 'add') ? true : false,
'S_GROUP_PERM' => ($action == 'add' && $auth->acl_get('a_authgroups') && $auth->acl_gets('a_aauth', 'a_fauth', 'a_mauth', 'a_uauth')) ? true : false,
'S_INCLUDE_SWATCH' => true,

					'S_ADD_GROUP'		=> ($action == 'add') ? true : false,
'S_GROUP_PERM' => ($action == 'add' && $auth->acl_get('a_authgroups') && $auth->acl_gets('a_aauth', 'a_fauth', 'a_mauth', 'a_uauth')) ? true : false,
'S_INCLUDE_SWATCH' => true,

					'S_ERROR'			=> (sizeof($error)) ? true : false,

					'S_ERROR'			=> (count($error)) ? true : false,

					'S_SPECIAL_GROUP'	=> ($group_type == GROUP_SPECIAL) ? true : false,
'S_USER_FOUNDER' => ($user->data['user_type'] == USER_FOUNDER) ? true : false,
'S_AVATARS_ENABLED' => ($config['allow_avatar'] && $avatars_enabled),


					'S_SPECIAL_GROUP'	=> ($group_type == GROUP_SPECIAL) ? true : false,
'S_USER_FOUNDER' => ($user->data['user_type'] == USER_FOUNDER) ? true : false,
'S_AVATARS_ENABLED' => ($config['allow_avatar'] && $avatars_enabled),


					'ERROR_MSG'				=> (sizeof($error)) ? implode('<br />', $error) : '',

					'ERROR_MSG'				=> (count($error)) ? implode('<br />', $error) : '',

					'GROUP_NAME'			=> $group_helper->get_name($group_name),
'GROUP_INTERNAL_NAME' => $group_name,
'GROUP_DESC' => $group_desc_data['text'],

					'GROUP_NAME'			=> $group_helper->get_name($group_name),
'GROUP_INTERNAL_NAME' => $group_name,
'GROUP_DESC' => $group_desc_data['text'],