mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 19:40:23 +02:00
There is no point looking up the group moderator name when none exists
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5613 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -104,6 +104,8 @@ if ( isset($HTTP_POST_VARS['edit']) || isset($HTTP_POST_VARS['new']) )
|
|||||||
//
|
//
|
||||||
// Ok, now we know everything about them, let's show the page.
|
// Ok, now we know everything about them, let's show the page.
|
||||||
//
|
//
|
||||||
|
if ($group_info['group_moderator'] != '')
|
||||||
|
{
|
||||||
$sql = "SELECT user_id, username
|
$sql = "SELECT user_id, username
|
||||||
FROM " . USERS_TABLE . "
|
FROM " . USERS_TABLE . "
|
||||||
WHERE user_id = " . $group_info['group_moderator'];
|
WHERE user_id = " . $group_info['group_moderator'];
|
||||||
@@ -118,6 +120,11 @@ if ( isset($HTTP_POST_VARS['edit']) || isset($HTTP_POST_VARS['new']) )
|
|||||||
}
|
}
|
||||||
|
|
||||||
$group_moderator = $row['username'];
|
$group_moderator = $row['username'];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$group_moderator = $row['username'];
|
||||||
|
}
|
||||||
|
|
||||||
$group_open = ( $group_info['group_type'] == GROUP_OPEN ) ? ' checked="checked"' : '';
|
$group_open = ( $group_info['group_type'] == GROUP_OPEN ) ? ' checked="checked"' : '';
|
||||||
$group_closed = ( $group_info['group_type'] == GROUP_CLOSED ) ? ' checked="checked"' : '';
|
$group_closed = ( $group_info['group_type'] == GROUP_CLOSED ) ? ' checked="checked"' : '';
|
||||||
|
Reference in New Issue
Block a user