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 /admin/user_list.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-- | admin/user_list.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/admin/user_list.php b/admin/user_list.php index 2062fad4f..dd43b0d62 100644 --- a/admin/user_list.php +++ b/admin/user_list.php @@ -204,8 +204,11 @@ if ($conf['double_password_type_in_admin'] == true) } else { - $page['errors'] = register_user( - $_POST['login'], $_POST['password'], $_POST['email'], false); + register_user($_POST['login'], + $_POST['password'], + $_POST['email'], + false, + $page['errors']); if (count($page['errors']) == 0) { @@ -218,8 +221,11 @@ else if ($conf['double_password_type_in_admin'] == false) { if (isset($_POST['submit_add'])) { - $page['errors'] = register_user( - $_POST['login'], $_POST['password'], $_POST['email'], false); + register_user($_POST['login'], + $_POST['password'], + $_POST['email'], + false, + $page['errors']); if (count($page['errors']) == 0) { |