fixed invites.php send method