aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-03-18 12:03:33 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-03-18 12:03:33 +0000
commit6da288aace3df1e2fcf4c06c8a467cf29922f07d (patch)
tree4443f0bc0df5d1b5c87a3a79333e389fe7152205
parenta3b98e510e63a270985d478c4a5a2f43cbbcead6 (diff)
downloadforums-6da288aace3df1e2fcf4c06c8a467cf29922f07d.tar
forums-6da288aace3df1e2fcf4c06c8a467cf29922f07d.tar.gz
forums-6da288aace3df1e2fcf4c06c8a467cf29922f07d.tar.bz2
forums-6da288aace3df1e2fcf4c06c8a467cf29922f07d.tar.xz
forums-6da288aace3df1e2fcf4c06c8a467cf29922f07d.zip
i think i will stop committing thinks today. :/
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8443 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 0b79cffda3..5622b2dd6c 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3159,7 +3159,7 @@ function obtain_users_online($forum_id = 0)
{
$reading_sql = ' AND s.session_forum_id = ' . (int) $forum_id;
}
-$config['load_online_time'] = 500000;
+
$online_users = array(
'online_users' => array(),
'hidden_users' => array(),
@@ -3182,7 +3182,7 @@ $config['load_online_time'] = 500000;
WHERE s.session_time >= ' . ($time - ((int) ($time % 30))) .
$reading_sql .
' AND s.session_user_id <> ' . ANONYMOUS;
- $result = $db->sql_query($sql);
+ $result = $db->sql_query($sql, 30);
while ($row = $db->sql_fetchrow($result))
{