aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-05-04 12:30:21 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-05-04 12:30:21 +0000
commita465b06923af558429b3c7642c52309d61574029 (patch)
treeb31ac1e61d9db47aa6939b7a55cd0aae303ae459 /phpBB/viewforum.php
parentf7b51337c55f88f19f8b9406b64e7d03150efa2c (diff)
downloadforums-a465b06923af558429b3c7642c52309d61574029.tar
forums-a465b06923af558429b3c7642c52309d61574029.tar.gz
forums-a465b06923af558429b3c7642c52309d61574029.tar.bz2
forums-a465b06923af558429b3c7642c52309d61574029.tar.xz
forums-a465b06923af558429b3c7642c52309d61574029.zip
added class for disabled options in ACP
E_USER_ERROR now using language keys if available [related to #10445] UCP/MCP title tags [#10441] Check $start parameter in viewforum [#10435] Check for postable forum for moving user posts within users ACP [#10433] Show error if admin tries to put forums beneath linked forums [related to #10433] Correctly catch attachments while moving posts [#10431] language change in install.html [#10425] Updated AUTHORS file git-svn-id: file:///svn/phpbb/trunk@7456 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 554bda47b5..7bad55b34f 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -238,6 +238,12 @@ else
$sql_limit_time = '';
}
+// Make sure $start is set to the last page if it exceeds the amount
+if ($start < 0 || $start > $topics_count)
+{
+ $start = ($start < 0) ? 0 : floor(($topics_count - 1) / $config['topics_per_page']) * $config['topics_per_page'];
+}
+
// Basic pagewide vars
$post_alt = ($forum_data['forum_status'] == ITEM_LOCKED) ? $user->lang['FORUM_LOCKED'] : $user->lang['POST_NEW_TOPIC'];