From 2d2a2e2813b3f709ad907aad77e0af24e276103a Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 24 Oct 2013 13:01:25 +0000 Subject: bug 2988: register_user() must returns new user id git-svn-id: http://piwigo.org/svn/trunk@25116 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/user.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/user.inc.php') diff --git a/include/user.inc.php b/include/user.inc.php index 60117e776..9c8fc9680 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -60,8 +60,7 @@ if ($conf['apache_authentication']) { if (!($user['id'] = get_userid($remote_user))) { - register_user($remote_user, '', '', false); - $user['id'] = get_userid($remote_user); + $user['id'] = register_user($remote_user, '', '', false); } } } -- cgit v1.2.3