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