aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-11-19 16:05:26 +0000
committerplegall <plg@piwigo.org>2005-11-19 16:05:26 +0000
commita8836718e5a5c39fb7fc057f24eaf86229ec39c2 (patch)
tree27f3dd72605c56f33591393fbc36a248e00926d5
parent89fec49fdaa69734f218b50fa1ffaa4841481c24 (diff)
- bug 212 fixed: during registration process, different password and
password confirmation triggered no error. git-svn-id: http://piwigo.org/svn/branches/branch-1_5@945 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--register.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/register.php b/register.php
index c26511d02..27def1f85 100644
--- a/register.php
+++ b/register.php
@@ -36,14 +36,15 @@ if (isset($_POST['submit']))
{
array_push($errors, $lang['reg_err_pass']);
}
-
- $errors =
- array_merge(
- $errors,
- register_user($_POST['login'],
- $_POST['password'],
- $_POST['mail_address'])
- );
+ else
+ {
+ $errors =
+ register_user(
+ $_POST['login'],
+ $_POST['password'],
+ $_POST['mail_address']
+ );
+ }
if (count($errors) == 0)
{