Report #140: Call to non present announcement or news number [read all]

Grrrr. Now its correct. :P
This commit is contained in:
Kevin
2009-01-27 17:04:47 +00:00
parent 8578bacd27
commit 38d75f6d3b
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ if (!defined('IN_PORTAL'))
}
$announcement = request_var('announcement', -1);
$announcement = ($announcement > $portal_config['portal_number_of_announcements']) ? -1 : $announcement;
$announcement = ($announcement > $portal_config['portal_number_of_announcements'] -1) ? -1 : $announcement;
$start = request_var('ap', 0);
$start = ($start < 0) ? 0 : $start;

View File

@@ -21,7 +21,7 @@ if (!defined('IN_PORTAL'))
}
$news = request_var('news', -1);
$news = ($news > $portal_config['portal_number_of_news']) ? -1 : $news;
$news = ($news > $portal_config['portal_number_of_news'] -1) ? -1 : $news;
$user->add_lang('viewforum');
$start = request_var('np', 0);
$start = ($start < 0) ? 0 : $start;