From fe57f5340c425aee08e9860b2ed3c16189b210fb Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 22 Nov 2003 17:57:06 +0000 Subject: [PATCH] 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 --- phpBB/viewtopic.php | 5 +++++ 1 file changed, 5 insertions(+) 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'); }