Move $error=FALSE out of conditional to top of script

git-svn-id: file:///svn/phpbb/trunk@2420 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-03-24 13:08:20 +00:00
parent c996a8aa41
commit 5e3a33efb2

View file

@ -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' )
{