From ceb55a49a684db4e3a37b7ff36d522b7b1958e84 Mon Sep 17 00:00:00 2001 From: jacob Date: Fri, 28 Jan 2011 19:57:09 +0000 Subject: [PATCH] Add a user id to the session when someone adds a role (and thus a user) to an account that does not currently correspond to any user records. --- account.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account.inc.php b/account.inc.php index d61f98f..58d1969 100644 --- a/account.inc.php +++ b/account.inc.php @@ -218,7 +218,7 @@ function account_add_role($accounts_id, $roles_id, $conferences_id, $password = }else{ // They're not actually connected to this conference, let's hook 'em up $u = user_create($accounts_id, $conferences_id); - $users_id = $u['id']; + $_SESSION['users_id'] = $users_id = $u['id']; } // we now have the user id that we need, let's check to see whether or not they