mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Clearing up a query which is causing problems on large installs [Bug #723]
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5559 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
21440a4f1a
commit
566b342b67
1 changed files with 5 additions and 7 deletions
|
@ -106,21 +106,19 @@ if ( isset($HTTP_POST_VARS['edit']) || isset($HTTP_POST_VARS['new']) )
|
|||
//
|
||||
$sql = "SELECT user_id, username
|
||||
FROM " . USERS_TABLE . "
|
||||
WHERE user_id <> " . ANONYMOUS . "
|
||||
ORDER BY username";
|
||||
WHERE user_id = " . $group_info['group_moderator'];
|
||||
if ( !($result = $db->sql_query($sql)) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, 'Could not obtain user info for moderator list', '', __LINE__, __FILE__, $sql);
|
||||
}
|
||||
|
||||
while ( $row = $db->sql_fetchrow($result) )
|
||||
if ( !($row = $db->sql_fetchrow($result)) )
|
||||
{
|
||||
if ( $row['user_id'] == $group_info['group_moderator'] )
|
||||
{
|
||||
$group_moderator = $row['username'];
|
||||
}
|
||||
message_die(GENERAL_ERROR, 'Could not obtain user info for moderator list', '', __LINE__, __FILE__, $sql);
|
||||
}
|
||||
|
||||
$group_moderator = $row['username'];
|
||||
|
||||
$group_open = ( $group_info['group_type'] == GROUP_OPEN ) ? ' checked="checked"' : '';
|
||||
$group_closed = ( $group_info['group_type'] == GROUP_CLOSED ) ? ' checked="checked"' : '';
|
||||
$group_hidden = ( $group_info['group_type'] == GROUP_HIDDEN ) ? ' checked="checked"' : '';
|
||||
|
|
Loading…
Add table
Reference in a new issue