diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-08-22 22:37:30 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-08-22 22:37:30 +0000 |
commit | ca08eb6d170d375ef4fca53604956f3474c7db19 (patch) | |
tree | a1e96c6b0ae322fab93373a66e1951e2b3b9be48 /actions/friends/remove.php | |
parent | be37104ac63cd25f2eac831ca03d6d2b19976e1c (diff) | |
download | elgg-ca08eb6d170d375ef4fca53604956f3474c7db19.tar.gz elgg-ca08eb6d170d375ef4fca53604956f3474c7db19.tar.bz2 |
Merged r6701:6756 from 1.7 branch into trunk
git-svn-id: http://code.elgg.org/elgg/trunk@6849 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/friends/remove.php')
-rw-r--r-- | actions/friends/remove.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/friends/remove.php b/actions/friends/remove.php index 768291055..d3d362a92 100644 --- a/actions/friends/remove.php +++ b/actions/friends/remove.php @@ -19,7 +19,7 @@ $errors = false; // Get the user try{ if ($friend instanceof ElggUser) { - $_SESSION['user']->removeFriend($friend_guid); + get_loggedin_user()->removeFriend($friend_guid); } else{ register_error(sprintf(elgg_echo("friends:remove:failure"), $friend->name)); $errors = true; |