From fb84ff92ae8085dcf86c197d8dc3b75884120c99 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 8 Dec 2012 01:44:03 +0100 Subject: [PATCH] [ticket/217] Handle incorrect values in the news URL The news module was actually comparing the id of the selected news with the maximum allowed length of a news article. B3P-217 --- root/portal/modules/portal_news.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/portal/modules/portal_news.php b/root/portal/modules/portal_news.php index 00903562..4cc1088f 100644 --- a/root/portal/modules/portal_news.php +++ b/root/portal/modules/portal_news.php @@ -52,7 +52,7 @@ class portal_news_module global $config, $template, $db, $user, $auth, $cache, $phpEx, $phpbb_root_path; $news = request_var('news', -1); - $news = ($news > $config['board3_news_length_' . $module_id] -1) ? -1 : $news; + $news = ($news > $config['board3_number_of_news_' . $module_id] -1) ? -1 : $news; $user->add_lang('viewforum'); $start = request_var('np', 0); $start = ($start < 0) ? 0 : $start;