diff options
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/usercp_register.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/phpBB/includes/usercp_register.php b/phpBB/includes/usercp_register.php index fbe7f3ff65..24b3194c67 100644 --- a/phpBB/includes/usercp_register.php +++ b/phpBB/includes/usercp_register.php @@ -253,12 +253,7 @@ if ( isset($HTTP_POST_VARS['submit']) ) } } } - else if ( empty($password) && empty($password_confirm) ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_mismatch']; - } - else + else if ( ( empty($password) && !empty($password_confirm) ) || ( !empty($password) && empty($password_confirm) ) || ( empty($password) && empty($password_confirm) && $mode == 'register' ) ) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_mismatch']; |