bug 2988: register_user() must returns new user id

git-svn-id: http://piwigo.org/svn/trunk@25116 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2013-10-24 13:01:25 +00:00
parent d6211432ec
commit 2d2a2e2813
4 changed files with 45 additions and 36 deletions
+5 -6
View File
@@ -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)
{