mail on friend request
This commit is contained in:
parent
66c2316b62
commit
238c895295
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue