aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/database_update.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-02-22 19:33:27 +0000
committerAndreas Fischer <bantu@phpbb.com>2010-02-22 19:33:27 +0000
commite8f01ff74b58d9d73ff3c32507d843b8b14d92e5 (patch)
treefdd576a865ae1ac88bb8c5a0170c381796221b35 /phpBB/install/database_update.php
parente01171ca85e09b10a93337c9a88022545dee23c1 (diff)
downloadforums-e8f01ff74b58d9d73ff3c32507d843b8b14d92e5.tar
forums-e8f01ff74b58d9d73ff3c32507d843b8b14d92e5.tar.gz
forums-e8f01ff74b58d9d73ff3c32507d843b8b14d92e5.tar.bz2
forums-e8f01ff74b58d9d73ff3c32507d843b8b14d92e5.tar.xz
forums-e8f01ff74b58d9d73ff3c32507d843b8b14d92e5.zip
We have to use a 'snapshot' of the function there, because it might not be available yet. - Bug #57755
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10520 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r--phpBB/install/database_update.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index 4db78331bd..df8aadfdb2 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -1615,7 +1615,9 @@ function change_database_data(&$no_updates, $version)
$i = 0;
while ($row = $db->sql_fetchrow($result))
{
- $user_email_hash = phpbb_email_hash($row['user_email']);
+ // Snapshot of the phpbb_email_hash() function
+ // We cannot call it directly because the auto updater updates the DB first. :/
+ $user_email_hash = sprintf('%u', crc32(strtolower($row['user_email']))) . strlen($row['user_email']);
if ($user_email_hash != $row['user_email_hash'])
{