aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/friendrequest/decline.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/friendrequest/decline.php b/actions/friendrequest/decline.php
index 247023c60..ca3f1c9e4 100644
--- a/actions/friendrequest/decline.php
+++ b/actions/friendrequest/decline.php
@@ -4,7 +4,7 @@ $user = elgg_get_logged_in_user_entity();
$friend = get_entity(sanitize_int(get_input("guid")));
if(remove_entity_relationship($friend->guid, 'friendrequest', $user->guid)) {
- system_message(elgg_echo("friendrequest:decline:success", array($user->name)));
+ system_message(elgg_echo("friendrequest:decline:success", array($friend->name)));
} else {
system_message(elgg_echo("friendrequest:decline:fail"));
}