aboutsummaryrefslogtreecommitdiff
path: root/actions/friends/remove.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/friends/remove.php')
-rw-r--r--actions/friends/remove.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/actions/friends/remove.php b/actions/friends/remove.php
index 62bccb891..d69d18f31 100644
--- a/actions/friends/remove.php
+++ b/actions/friends/remove.php
@@ -4,7 +4,6 @@
*
* @package Elgg.Core
* @subpackage Friends.Management
- * @override actions/friends/remove.php
*/
// Get the GUID of the user to friend
@@ -16,9 +15,6 @@ $errors = false;
try{
if ($friend instanceof ElggUser) {
elgg_get_logged_in_user_entity()->removeFriend($friend_guid);
- $ia = elgg_set_ignore_access(true);
- $friend->removeFriend(elgg_get_logged_in_user_guid());
- elgg_set_ignore_access($ia);
} else {
register_error(elgg_echo("friends:remove:failure", array($friend->name)));
$errors = true;