From a44bf33a85dffb5991ab5ea469292498fb2696d2 Mon Sep 17 00:00:00 2001 From: rub Date: Fri, 27 Apr 2007 05:24:01 +0000 Subject: Issue 0000682: Error on user registration On register page when the 2 passwords are not the same, an error occurs but user is also created. => Just error must be raised. Merge BSF 1984:1985 into branch-1_7 git-svn-id: http://piwigo.org/svn/branches/branch-1_7@1986 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_user.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/functions_user.inc.php') diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index fb7d32494..5ed6c169f 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -44,11 +44,10 @@ function validate_mail_address( $mail_address ) } } -function register_user($login, $password, $mail_address) +function register_user($login, $password, $mail_address, $errors = array()) { global $lang, $conf; - $errors = array(); if ($login == '') { array_push($errors, $lang['reg_err_login1']); -- cgit v1.2.3