aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-02-22 19:17:10 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-02-22 19:17:10 +0000
commitd181f0ef36f4cfbc8726da21e4de864df3a6f3d2 (patch)
treef846f97235afe6cad716e40e2396f8ba74e84ba5 /phpBB/viewtopic.php
parentb27add94f8eb36d5e740afadf5306c48873736f9 (diff)
downloadforums-d181f0ef36f4cfbc8726da21e4de864df3a6f3d2.tar
forums-d181f0ef36f4cfbc8726da21e4de864df3a6f3d2.tar.gz
forums-d181f0ef36f4cfbc8726da21e4de864df3a6f3d2.tar.bz2
forums-d181f0ef36f4cfbc8726da21e4de864df3a6f3d2.tar.xz
forums-d181f0ef36f4cfbc8726da21e4de864df3a6f3d2.zip
append_sid wrapper + is_guest
git-svn-id: file:///svn/phpbb/trunk@9338 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 319ba31e1b..16b0f486ae 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1583,10 +1583,9 @@ else if (!$all_marked_read)
/**
* @todo Do NOT overwrite a request variable.
*/
-// We overwrite the 'f' request variable if there is no forum specified
-// to be able to display the correct online list.
+// We overwrite the 'f' request variable if there is no forum specified to be able to display the correct online list.
// One downside is that the user currently viewing this topic/post is not taken into account.
-if (empty(phpbb_request::variable('f', '')))
+if (!phpbb_request::variable('f', 0))
{
phpbb_request::overwrite('f', $forum_id);
}