diff options
-rw-r--r-- | register.php | 17 |
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) { |