diff options
| author | Henry Sudhof <kellanved@phpbb.com> | 2009-08-14 15:56:35 +0000 |
|---|---|---|
| committer | Henry Sudhof <kellanved@phpbb.com> | 2009-08-14 15:56:35 +0000 |
| commit | 57420e4dc9b2ae90975fc1f6266913d4d946515c (patch) | |
| tree | 8f4772031b14cabc2e468b16d878e2b6609104be | |
| parent | e1fa222dc56883f1f529e1efddd0b7a8d019cb14 (diff) | |
| download | forums-57420e4dc9b2ae90975fc1f6266913d4d946515c.tar forums-57420e4dc9b2ae90975fc1f6266913d4d946515c.tar.gz forums-57420e4dc9b2ae90975fc1f6266913d4d946515c.tar.bz2 forums-57420e4dc9b2ae90975fc1f6266913d4d946515c.tar.xz forums-57420e4dc9b2ae90975fc1f6266913d4d946515c.zip | |
we are not supposed to know that yet
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9985 89ea8834-ac86-4346-8a33-228a782c2dd0
| -rw-r--r-- | phpBB/viewtopic.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 2592b1be07..1aa120622e 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -282,10 +282,10 @@ $forum_id = (int) $topic_data['forum_id']; if ($post_id) { // are we where we are supposed to be? - if ($post_id && !$topic_data['post_approved'] && !$auth->acl_get('m_approve', $topic_data['forum_id'])) + if (!$topic_data['post_approved'] && !$auth->acl_get('m_approve', $topic_data['forum_id'])) { // If post_id was submitted, we try at least to display the topic as a last resort... - if ($post_id && $topic_id) + if ($topic_id) { redirect(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "t=$topic_id" . (($forum_id) ? "&f=$forum_id" : ''))); } |
