From 6aa583f43da02138b0e8f26390e08b6a0d9e2ece Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 24 Oct 2008 11:35:31 +0000 Subject: Added the ability to add a user to a user's friends list on registration. git-svn-id: https://code.elgg.org/elgg/trunk@2304 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/register.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actions/register.php') diff --git a/actions/register.php b/actions/register.php index 7a8a01c5d..a92f37f54 100644 --- a/actions/register.php +++ b/actions/register.php @@ -22,6 +22,7 @@ $password2 = get_input('password2'); $email = get_input('email'); $name = get_input('name'); + $friend_guid = (int) get_input('friend_guid',0); $admin = get_input('admin'); if (is_array($admin)) $admin = $admin[0]; @@ -37,7 +38,7 @@ (trim($password)!="") && (strcmp($password, $password2)==0) ) && - ($guid = register_user($username, $password, $name, $email)) + ($guid = register_user($username, $password, $name, $email, $friend_guid)) ) { $new_user = get_entity($guid); -- cgit v1.2.3