diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-09-09 01:00:11 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-09-09 01:00:11 +0000 |
commit | 6f96492dd940702a842c0a95872d0ff43ba4082e (patch) | |
tree | 2fd5e14f5ff1c188f612bf4dd78bc0bbfd6deb1c /phpBB/includes/ucp/ucp_register.php | |
parent | c1589a9cdb84f3d477c53ac60e0b1f23c0b2941e (diff) | |
download | forums-6f96492dd940702a842c0a95872d0ff43ba4082e.tar forums-6f96492dd940702a842c0a95872d0ff43ba4082e.tar.gz forums-6f96492dd940702a842c0a95872d0ff43ba4082e.tar.bz2 forums-6f96492dd940702a842c0a95872d0ff43ba4082e.tar.xz forums-6f96492dd940702a842c0a95872d0ff43ba4082e.zip |
This one may work ... wouldn't it be nice if it did?
git-svn-id: file:///svn/phpbb/trunk@4489 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_register.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_register.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php index 96c0f90465..9414d27681 100644 --- a/phpBB/includes/ucp/ucp_register.php +++ b/phpBB/includes/ucp/ucp_register.php @@ -85,12 +85,12 @@ class ucp_register extends ucp $var_ary = array( 'username' => array( array('string', false, $config['min_name_chars'], $config['max_name_chars']), - array('username', $username)), + array('username')), 'password_confirm' => array('string', false, $config['min_pass_chars'], $config['max_pass_chars']), 'new_password' => array('string', false, $config['min_pass_chars'], $config['max_pass_chars']), 'email' => array( array('string', false, 6, 60), - array('email', $email)), + array('email')), 'email_confirm' => array('string', false, 6, 60), 'confirm_code' => array('string', !$config['enable_confirm'], 6, 6), 'tz' => array('num', false, -13, 13), @@ -118,7 +118,7 @@ class ucp_register extends ucp if ($row = $db->sql_fetchrow($result)) { - if ($row['code'] != $data['confirm_code']) + if ($row['code'] != $confirm_code) { $error[] = $user->lang['CONFIRM_CODE_WRONG']; } @@ -289,12 +289,12 @@ class ucp_register extends ucp $s_hidden_fields = '<input type="hidden" name="agreed" value="true" /><input type="hidden" name="coppa" value="' . $coppa . '" />'; - // Visual Confirmation - Show images $confirm_image = ''; - if (!empty($config['enable_confirm'])) + // Visual Confirmation - Show images + if ($config['enable_confirm']) { - $sql = "SELECT session_id - FROM " . SESSIONS_TABLE; + $sql = 'SELECT session_id + FROM ' . SESSIONS_TABLE; $result = $db->sql_query($sql); if ($row = $db->sql_fetchrow($result)) |