aboutsummaryrefslogtreecommitdiffstats
path: root/include/user.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-10-24 13:01:25 +0000
committermistic100 <mistic@piwigo.org>2013-10-24 13:01:25 +0000
commit2d2a2e2813b3f709ad907aad77e0af24e276103a (patch)
tree242c204ec43140cf541cc3ca378606f2a77ab9b9 /include/user.inc.php
parentd6211432ec2144b877e16c36c1f8ea202bb8daae (diff)
bug 2988: register_user() must returns new user id
git-svn-id: http://piwigo.org/svn/trunk@25116 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/user.inc.php3
1 files changed, 1 insertions, 2 deletions
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);
}
}
}