blob: 5b48acfb401520a04941a242123a22b1a9f15af6 (
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:remove:success"));
} else {
system_message(elgg_echo("friendrequest:remove:fail"));
}
forward(REFERER);
|