mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
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:
parent
c996a8aa41
commit
5e3a33efb2
1 changed files with 1 additions and 2 deletions
|
@ -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' )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue