aboutsummaryrefslogtreecommitdiff
path: root/actions/friendrequest
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-12-09 02:43:48 +0100
committerSem <sembrestels@riseup.net>2011-12-09 02:43:48 +0100
commit33f82b5ada858508d97d81a5e2c686b3ba7d0d9c (patch)
tree5345815276d60eeb72feb1b602c905182db18099 /actions/friendrequest
parent862cec3dec4bdb4983a22db7d79d2aae4f1031fd (diff)
downloadelgg-33f82b5ada858508d97d81a5e2c686b3ba7d0d9c.tar.gz
elgg-33f82b5ada858508d97d81a5e2c686b3ba7d0d9c.tar.bz2
Added a num of friend requests on menu text and fixed a bug in decline message.
Diffstat (limited to 'actions/friendrequest')
-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"));
}