This one has the added benefit of working ...

git-svn-id: file:///svn/phpbb/trunk@2389 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-03-21 13:34:02 +00:00
parent 21f720a265
commit 5047d43ca3

View file

@ -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'];