phpBB

Code Changes

File: includes/ucp/ucp_groups.php

  Unmodified   Added   Modified   Removed
Line 136Line 136
							{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

							{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

							list(, $row) = each($row);

							$row = current($row);


$sql = 'SELECT group_type
FROM ' . GROUPS_TABLE . '


$sql = 'SELECT group_type
FROM ' . GROUPS_TABLE . '

Line 240Line 240
							{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

							{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

							list(, $row) = each($row);

							$row = current($row);


if (!$row['group_leader'])
{


if (!$row['group_leader'])
{

Line 460Line 460
						{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

						{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

						list(, $row) = each($row);

						$row = current($row);


if (!$row['group_leader'])
{


if (!$row['group_leader'])
{

Line 534Line 534
								'teampage'	=> $group_row['group_teampage'],
);


								'teampage'	=> $group_row['group_teampage'],
);


							if ($config['allow_avatar'])






							if (!check_form_key('ucp_groups'))
{
$error[] = $user->lang['FORM_INVALID'];
}

if (!count($error) && $config['allow_avatar'])

							{
// Handle avatar
$driver_name = $phpbb_avatar_manager->clean_driver_name($request->variable('avatar_driver', ''));

							{
// Handle avatar
$driver_name = $phpbb_avatar_manager->clean_driver_name($request->variable('avatar_driver', ''));

Line 554Line 559

// Merge any avatars errors into the primary error array
$error = array_merge($error, $phpbb_avatar_manager->localize_errors($user, $avatar_error));


// Merge any avatars errors into the primary error array
$error = array_merge($error, $phpbb_avatar_manager->localize_errors($user, $avatar_error));

							}

if (!check_form_key('ucp_groups'))
{
$error[] = $user->lang['FORM_INVALID'];

 
							}

// Validate submitted colour value

							}

// Validate submitted colour value

Line 754Line 754
						{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

						{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

						list(, $row) = each($row);

						$row = current($row);


if (!$row['group_leader'])
{


if (!$row['group_leader'])
{

Line 873Line 873
						if (!$group_id)
{
trigger_error($user->lang['NO_GROUP'] . $return_page);

						if (!$group_id)
{
trigger_error($user->lang['NO_GROUP'] . $return_page);

 
						}

if (!check_form_key('ucp_groups'))
{
trigger_error($user->lang('FORM_INVALID') . $return_page);

						}

if (!($row = group_memberships($group_id, $user->data['user_id'])))
{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

						}

if (!($row = group_memberships($group_id, $user->data['user_id'])))
{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

						list(, $row) = each($row);

						$row = current($row);


if (!$row['group_leader'])
{


if (!$row['group_leader'])
{

Line 906Line 911
						{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

						{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

						list(, $row) = each($row);

						$row = current($row);


if (!$row['group_leader'])
{


if (!$row['group_leader'])
{

Line 985Line 990
						{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

						{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

						list(, $row) = each($row);

						$row = current($row);


if (!$row['group_leader'])
{


if (!$row['group_leader'])
{

Line 1046Line 1051
						{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

						{
trigger_error($user->lang['NOT_MEMBER_OF_GROUP'] . $return_page);
}

						list(, $row) = each($row);

						$row = current($row);


if (!$row['group_leader'])
{


if (!$row['group_leader'])
{