aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-05-22 21:49:45 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-05-22 21:49:45 +0000
commit2a7186898d152ffe6b0084be216c17f3a55cc3f4 (patch)
tree30c757c3568346c8ed2ba298d4d411ec9e3d4004 /phpBB/install
parent3899e337e6c089b8399c7d3f8609bc467c64ab74 (diff)
downloadforums-2a7186898d152ffe6b0084be216c17f3a55cc3f4.tar
forums-2a7186898d152ffe6b0084be216c17f3a55cc3f4.tar.gz
forums-2a7186898d152ffe6b0084be216c17f3a55cc3f4.tar.bz2
forums-2a7186898d152ffe6b0084be216c17f3a55cc3f4.tar.xz
forums-2a7186898d152ffe6b0084be216c17f3a55cc3f4.zip
oops.
git-svn-id: file:///svn/phpbb/trunk@7664 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install')
-rw-r--r--phpBB/install/convertors/functions_phpbb20.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/phpBB/install/convertors/functions_phpbb20.php b/phpBB/install/convertors/functions_phpbb20.php
index a350ee8f4e..246316513d 100644
--- a/phpBB/install/convertors/functions_phpbb20.php
+++ b/phpBB/install/convertors/functions_phpbb20.php
@@ -533,18 +533,9 @@ function phpbb_convert_authentication($mode)
ORDER BY user_regdate ASC";
$result = $src_db->sql_query($sql);
-
- $sql = 'SELECT group_id
- FROM ' . GROUPS_TABLE . "
- WHERE group_name = '" . $db->sql_escape('BOTS') . "'";
- $result = $db->sql_query($sql);
- $bot_group_id = (int) $db->sql_fetchfield('group_id');
- $db->sql_freeresult($result);
-
while ($row = $src_db->sql_fetchrow($result))
{
$user_id = (int) phpbb_user_id($row['user_id']);
-
// Set founder admin...
$sql = 'UPDATE ' . USERS_TABLE . '
SET user_type = ' . USER_FOUNDER . "
@@ -552,6 +543,13 @@ function phpbb_convert_authentication($mode)
$db->sql_query($sql);
}
$src_db->sql_freeresult($result);
+
+ $sql = 'SELECT group_id
+ FROM ' . GROUPS_TABLE . "
+ WHERE group_name = '" . $db->sql_escape('BOTS') . "'";
+ $result = $db->sql_query($sql);
+ $bot_group_id = (int) $db->sql_fetchfield('group_id');
+ $db->sql_freeresult($result);
}
// Grab forum auth information