aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/index.php3
-rw-r--r--phpBB/viewonline.php5
2 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index 8f4f7530b7..0bc0cd6a8a 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -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 = '';
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index 066beabbdc..65c3623c25 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -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 = '';