Commit 93de40bd authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Fixed friend logic

parent 570a6953
......@@ -505,6 +505,7 @@ $string['currentfriends'] = 'Friends';
$string['pendingfriends'] = 'Pending friends';
$string['friendlistfailure'] = 'Failed to modify your friends list';
$string['userdoesntwantfriends'] = 'This user doesn\'t want any new friends';
$string['friend'] = 'Friend';
$string['profileicon'] = 'Profile Icon';
......
......@@ -248,8 +248,8 @@ else if ($request = get_friend_request($userid, $loggedinid)) {
else {
$friendscontrol = get_account_preference($userid, 'friendscontrol');
if ($friendscontrol == 'nobody') {
$friendtype = 'remove';
$friendsubmit = get_string('removefromfriendslist');
$friendtype = '';
$friendformmessage = get_string('userdoesntwantfriends');
}
else if ($friendscontrol == 'auth') {
$friendform['elements']['reason'] = array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment