diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-08-21 15:09:52 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-08-21 15:09:52 +0000 |
commit | ff3843b39e714ef879a91f245ee6170534947503 (patch) | |
tree | 21231ba8af0a60ff6f41a533ee749af6a6e82f37 /phpBB/includes/ucp/ucp_register.php | |
parent | 5f4cd5b65c22a35e8ef3005a9025c2a3f579cfaa (diff) | |
download | forums-ff3843b39e714ef879a91f245ee6170534947503.tar forums-ff3843b39e714ef879a91f245ee6170534947503.tar.gz forums-ff3843b39e714ef879a91f245ee6170534947503.tar.bz2 forums-ff3843b39e714ef879a91f245ee6170534947503.tar.xz forums-ff3843b39e714ef879a91f245ee6170534947503.zip |
- make sure the copyright/disclaimer is consistent
- two fixes...
git-svn-id: file:///svn/phpbb/trunk@8061 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_register.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_register.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php index 3d7df02850..d6391a4821 100644 --- a/phpBB/includes/ucp/ucp_register.php +++ b/phpBB/includes/ucp/ucp_register.php @@ -427,7 +427,7 @@ class ucp_register $str = ''; if (!$change_lang) { - $sql = 'SELECT c.confirm_id + $sql = 'SELECT c.session_id FROM ' . CONFIRM_TABLE . ' c LEFT JOIN ' . SESSIONS_TABLE . ' s ON (c.session_id = s.session_id) WHERE s.session_id IS NULL'; @@ -438,14 +438,14 @@ class ucp_register $sql_in = array(); do { - $sql_in[] = (string) $row['confirm_id']; + $sql_in[(string) $row['session_id']] = 1; } while ($row = $db->sql_fetchrow($result)); if (sizeof($sql_in)) { $sql = 'DELETE FROM ' . CONFIRM_TABLE . ' - WHERE ' . $db->sql_in_set('confirm_id', $sql_in) . ' + WHERE ' . $db->sql_in_set('session_id', array_keys($sql_in)) . ' AND confirm_type = ' . CONFIRM_REG; $db->sql_query($sql); } |