mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
git-svn-id: file:///svn/phpbb/trunk@8228 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
35f205ea61
commit
5abe1ea4fe
2 changed files with 27 additions and 17 deletions
|
@ -95,6 +95,7 @@
|
||||||
<li>[Sec] Fix bbcode helpline display for custom bbcodes - this requires style changes for any custom style (Bug #14850)</li>
|
<li>[Sec] Fix bbcode helpline display for custom bbcodes - this requires style changes for any custom style (Bug #14850)</li>
|
||||||
<li>[Fix] Correctly count announcements when filtering forums by date (Bug #14877)</li>
|
<li>[Fix] Correctly count announcements when filtering forums by date (Bug #14877)</li>
|
||||||
<li>[Fix] Allow charset names containing underscores or spaces</li>
|
<li>[Fix] Allow charset names containing underscores or spaces</li>
|
||||||
|
<li>[Fix] Don't allow previous/next links for non-existing topics (Bug #15039)</li>
|
||||||
<li>[Change] Do not assign converted votes to the first option in a vote.</li>
|
<li>[Change] Do not assign converted votes to the first option in a vote.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -116,6 +116,14 @@ if ($view && !$post_id)
|
||||||
$row = $db->sql_fetchrow($result);
|
$row = $db->sql_fetchrow($result);
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
|
if (!$row)
|
||||||
|
{
|
||||||
|
$user->setup('viewtopic');
|
||||||
|
// OK, the topic doesn't exist. This error message is not helpful, but technically correct.
|
||||||
|
trigger_error(($view == 'next') ? 'NO_NEWER_TOPICS' : 'NO_OLDER_TOPICS');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$sql = 'SELECT topic_id, forum_id
|
$sql = 'SELECT topic_id, forum_id
|
||||||
FROM ' . TOPICS_TABLE . '
|
FROM ' . TOPICS_TABLE . '
|
||||||
WHERE forum_id = ' . $row['forum_id'] . "
|
WHERE forum_id = ' . $row['forum_id'] . "
|
||||||
|
@ -147,6 +155,7 @@ if ($view && !$post_id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Check for global announcement correctness?
|
// Check for global announcement correctness?
|
||||||
if ((!isset($row) || !$row['forum_id']) && !$forum_id)
|
if ((!isset($row) || !$row['forum_id']) && !$forum_id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue