mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-26 09:44:26 +02:00
Do not display adding friend/foe for anonymous and users own profile
git-svn-id: file:///svn/phpbb/trunk@5754 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -396,8 +396,9 @@ switch ($mode)
|
||||
'S_CUSTOM_FIELDS' => (isset($profile_fields['row']) && sizeof($profile_fields['row'])) ? true : false,
|
||||
'S_SHOW_ACTIVITY' => ($config['load_user_activity']) ? true : false,
|
||||
|
||||
'U_ADD_FRIEND' => "ucp.$phpEx$SID&i=zebra&add=" . urlencode($member['username']),
|
||||
'U_ADD_FOE' => "ucp.$phpEx$SID&i=zebra&mode=foes&add=" . urlencode($member['username']))
|
||||
'S_ZEBRA' => ($user->data['user_id'] != $user_id && $user->data['is_registered']) ? true : false,
|
||||
'U_ADD_FRIEND' => "{$phpbb_root_path}ucp.$phpEx$SID&i=zebra&add=" . urlencode($member['username']),
|
||||
'U_ADD_FOE' => "{$phpbb_root_path}ucp.$phpEx$SID&i=zebra&mode=foes&add=" . urlencode($member['username']))
|
||||
);
|
||||
|
||||
if (isset($profile_fields['row']) && sizeof($profile_fields['row']))
|
||||
|
Reference in New Issue
Block a user