mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
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
This commit is contained in:
parent
e1fa222dc5
commit
57420e4dc9
1 changed files with 2 additions and 2 deletions
|
@ -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" : '')));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue