mail on friend request

This commit is contained in:
sikanderzel 2016-06-02 19:49:38 +05:00
parent 66c2316b62
commit 238c895295

View file

@ -566,9 +566,13 @@ if(!empty($mode))
case 'add_friend':
{
global $cbemail;
$friend = mysql_clean($_POST['uid']);
$userid = userid();
$username = username();
$mailId = $cbemail->get_email_by_userid($friend);
$cbemail->friend_request_email($mailId['email'],$username);
if($userid) {
$userquery->add_contact($userid,$friend);