mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
oops.
git-svn-id: file:///svn/phpbb/trunk@7664 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3899e337e6
commit
2a7186898d
1 changed files with 7 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue