mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
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
This commit is contained in:
parent
755c0d845c
commit
fe57f5340c
1 changed files with 5 additions and 0 deletions
|
@ -173,6 +173,11 @@ $result = $db->sql_query($sql);
|
||||||
|
|
||||||
if (!($topic_data = $db->sql_fetchrow($result)))
|
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');
|
trigger_error('NO_TOPIC');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue