diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2003-11-22 17:57:06 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-11-22 17:57:06 +0000 |
commit | fe57f5340c425aee08e9860b2ed3c16189b210fb (patch) | |
tree | ce16754fa96a27545051b59a159b4267a621d41a | |
parent | 755c0d845c40f9eead94e7d2e293565e3974722f (diff) | |
download | forums-fe57f5340c425aee08e9860b2ed3c16189b210fb.tar forums-fe57f5340c425aee08e9860b2ed3c16189b210fb.tar.gz forums-fe57f5340c425aee08e9860b2ed3c16189b210fb.tar.bz2 forums-fe57f5340c425aee08e9860b2ed3c16189b210fb.tar.xz forums-fe57f5340c425aee08e9860b2ed3c16189b210fb.zip |
more user friendly (this fulfills request #695587 in conjunction with the previously added topic link to the notification templates)
git-svn-id: file:///svn/phpbb/trunk@4679 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/viewtopic.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index fe73614d3f..fb64a1c225 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -173,6 +173,11 @@ $result = $db->sql_query($sql); if (!($topic_data = $db->sql_fetchrow($result))) { + // If post_id was submitted, we try at least to display the topic as a last resort... + if ($post_id && $forum_id && $topic_id) + { + redirect("viewtopic.$phpEx$SID&f=$forum_id&t=$topic_id"); + } trigger_error('NO_TOPIC'); } |