aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-03-18 10:21:27 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-03-18 10:21:27 +0000
commit2138667953c04edab862de7ec9019989e5eef157 (patch)
tree37274e8653a80f98bff32ffa605cb708747ab121 /phpBB/includes/functions.php
parent221001a6dc86c7cd9246b6614adb24c1d88c0067 (diff)
downloadforums-2138667953c04edab862de7ec9019989e5eef157.tar
forums-2138667953c04edab862de7ec9019989e5eef157.tar.gz
forums-2138667953c04edab862de7ec9019989e5eef157.tar.bz2
forums-2138667953c04edab862de7ec9019989e5eef157.tar.xz
forums-2138667953c04edab862de7ec9019989e5eef157.zip
hmm, still bugs there
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8439 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 886ea7197f..79d20f1c8e 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3153,9 +3153,8 @@ function obtain_guest_count($forum_id = 0)
function obtain_users_online($forum_id = 0)
{
global $db, $config, $user;
- $logged_visible_online = $logged_hidden_online = $guests_online = $prev_user_id = 0;
- $reading_sql = '';
+ $reading_sql = '';
if ($forum_id !== 0)
{
$reading_sql = ' AND s.session_forum_id = ' . (int) $forum_id;
@@ -3217,8 +3216,10 @@ function obtain_users_online($forum_id = 0)
function obtain_users_online_string($online_users, $forum_id = 0)
{
global $db, $user, $auth;
+
$user_online_link = $online_userlist = '';
-
+ $prev_user_id = 0;
+
if (sizeof($online_users['online_users']))
{
$sql = 'SELECT u.username, u.username_clean, u.user_id, u.user_type, u.user_allow_viewonline, u.user_colour
@@ -3239,8 +3240,7 @@ function obtain_users_online_string($online_users, $forum_id = 0)
}
else
{
- $row['username'] = '<em>' . $row['username'] . '</em>';
- $logged_hidden_online++;
+ $row['username'] = $row['username'];
}
if (!isset($online_users['hidden_users'][$row['user_id']]) || $auth->acl_get('u_viewonline'))