mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 13:58:54 +00: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:
parent
3176c03583
commit
20fc30595b
1 changed files with 17 additions and 10 deletions
|
@ -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.
|
||||
//
|
||||
if ($group_info['group_moderator'] != '')
|
||||
{
|
||||
$sql = "SELECT user_id, username
|
||||
FROM " . USERS_TABLE . "
|
||||
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'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$group_moderator = $row['username'];
|
||||
}
|
||||
|
||||
$group_open = ( $group_info['group_type'] == GROUP_OPEN ) ? ' checked="checked"' : '';
|
||||
$group_closed = ( $group_info['group_type'] == GROUP_CLOSED ) ? ' checked="checked"' : '';
|
||||
|
|
Loading…
Add table
Reference in a new issue