diff --git a/phpBB/includes/usercp_register.php b/phpBB/includes/usercp_register.php index a1692c1fc0..92be87f63c 100644 --- a/phpBB/includes/usercp_register.php +++ b/phpBB/includes/usercp_register.php @@ -58,6 +58,7 @@ function show_coppa(&$coppa) // // +$error = FALSE; $page_title = ( $mode == 'editprofile' ) ? $lang['Edit_profile'] : $lang['Register']; if ( $mode == 'register' && !isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed']) ) @@ -188,8 +189,6 @@ if ( isset($HTTP_POST_VARS['submit']) ) { include($phpbb_root_path . 'includes/usercp_avatar.'.$phpEx); - $error = FALSE; - $passwd_sql = ''; if ( $mode == 'editprofile' ) {