blob: 247023c60482eca8969098bc0d4e9969d71c8443 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<?php
$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)));
} else {
system_message(elgg_echo("friendrequest:decline:fail"));
}
forward(REFERER);
|