From 5e3a33efb2e459b3eb72fd446b0d99e6467fb2a6 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 24 Mar 2002 13:08:20 +0000 Subject: [PATCH] Move $error=FALSE out of conditional to top of script git-svn-id: file:///svn/phpbb/trunk@2420 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/usercp_register.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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' ) {