Skip to content

Commit

Permalink
Fix Button "Deny invitation" does not work. - Refs #8108
Browse files Browse the repository at this point in the history
  • Loading branch information
jloguercio committed Feb 25, 2016
1 parent 857ac26 commit ab96a56
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main/inc/ajax/social.ajax.php
Expand Up @@ -36,15 +36,16 @@
break;
}


if (isset($_POST['is_my_friend'])) {
if (isset($_GET['is_my_friend'])) {
$relation_type = USER_RELATION_TYPE_FRIEND;//my friend
} else {
$relation_type = USER_RELATION_TYPE_UNKNOW;//Contact unknown
}
if (isset($_POST['denied_friend_id'])) {
SocialManager::invitation_denied($_POST['denied_friend_id'], $current_user_id);
if (isset($_GET['denied_friend_id'])) {
SocialManager::invitation_denied($_GET['denied_friend_id'], $current_user_id);
Display::display_confirmation_message(api_xml_http_response_encode(get_lang('InvitationDenied')));

header('Location: ' . api_get_path(WEB_CODE_PATH) . 'social/invitations.php');
}
break;
case 'delete_friend':
Expand Down

0 comments on commit ab96a56

Please sign in to comment.