mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 07:07:51 +02:00
Show legend if group coloured and not hidden
git-svn-id: file:///svn/phpbb/trunk@4433 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
056af19ae6
commit
7947c4e92c
@ -27,7 +27,6 @@ include($phpbb_root_path . 'common.'.$phpEx);
|
||||
// Get posted/get info
|
||||
$mark_read = (isset($_REQUEST['mark'])) ? $_REQUEST['mark'] : '';
|
||||
|
||||
|
||||
// Start session management
|
||||
$user->start();
|
||||
$auth->acl($user->data);
|
||||
@ -101,7 +100,7 @@ else
|
||||
$sql = 'SELECT group_name, group_colour, group_type
|
||||
FROM ' . GROUPS_TABLE . "
|
||||
WHERE group_colour <> ''
|
||||
AND group_display = 1";
|
||||
AND group_type <> " . GROUP_HIDDEN;
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
$legend = '';
|
||||
|
@ -28,11 +28,12 @@ include($phpbb_root_path . 'common.'.$phpEx);
|
||||
// Start session management
|
||||
$user->start();
|
||||
$auth->acl($user->data);
|
||||
|
||||
$user->setup();
|
||||
|
||||
|
||||
// Get and set some variables
|
||||
$start = (isset($_GET['start'])) ? intval($_GET['start']) : ((isset($_GET['page'])) ? (intval($_GET['page']) - 1) * $config['topics_per_page'] : 0);
|
||||
|
||||
$sort_key = (!empty($_REQUEST['sk'])) ? htmlspecialchars($_REQUEST['sk']) : 'b';
|
||||
$sort_dir = (!empty($_REQUEST['sd'])) ? htmlspecialchars($_REQUEST['sd']) : 'd';
|
||||
|
||||
@ -245,7 +246,7 @@ unset($vars_online);
|
||||
$sql = "SELECT group_name, group_colour, group_type
|
||||
FROM " . GROUPS_TABLE . "
|
||||
WHERE group_colour <> ''
|
||||
AND group_display = 1";
|
||||
AND group_type <> " . GROUP_HIDDEN;
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
$legend = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user