diff options
author | mistic100 <mistic@piwigo.org> | 2013-10-24 13:01:25 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2013-10-24 13:01:25 +0000 |
commit | 2d2a2e2813b3f709ad907aad77e0af24e276103a (patch) | |
tree | 242c204ec43140cf541cc3ca378606f2a77ab9b9 /register.php | |
parent | d6211432ec2144b877e16c36c1f8ea202bb8daae (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-- | register.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/register.php b/register.php index 02a1a1800..2fce11d52 100644 --- a/register.php +++ b/register.php @@ -52,12 +52,11 @@ if (isset($_POST['submit'])) $page['errors'][] = l10n('please enter your password again'); } - $page['errors'] = - register_user($_POST['login'], - $_POST['password'], - $_POST['mail_address'], - true, - $page['errors']); + register_user($_POST['login'], + $_POST['password'], + $_POST['mail_address'], + true, + $page['errors']); if (count($page['errors']) == 0) { |