bug has been in there since a long time..

postlist.inc.php

find:

PHP Code

	// If $page isn't set then it defaults to 1
	if (empty($page)) {
		$page = $_SESSION['currentpage'];
		if (!$page) {
			$page = 1;
		}
		if ($page < 1) $page = 1;
	}
 

change to:

PHP Code

	// If $page isn't set then it defaults to 1
	if (empty($page)) {
		$page = $_SESSION['currentpage'];
		if (!$page) {
			$page = 1;
		}
	}
	if ($page < 1) $page = 1;
 

it was always too trusting of the $page variable, if it was supplied in the URL.

this doesn't allow it to go 0 or negative.

the url that caused your error had a page of -1 in it.. ( default topics per is set to 10, so (-1 -1 ) * 10 --> 20... and a limit of 10+1 --> 11

smile

i will put this into the release... Brooks can notify when it is in the official .zip download smile