- user web: fix bug when showing last page of thread

This commit is contained in:
David Anderson 2012-11-08 12:22:56 -08:00 committed by Oliver Bock
parent 3f8357fc92
commit 109661f912
2 changed files with 9 additions and 0 deletions

View File

@ -6699,3 +6699,9 @@ David 8 Nov 2012
samples/example_app/
Makefile
slide_show.cpp (new)
David 8 Nov 2012
- user web: fix bug when showing last page of thread
html/inc
forum.inc

View File

@ -344,7 +344,10 @@ function show_posts(
}
if ($sort_style == CREATE_TIME_OLD) {
// show the last page
//
$nposts = sizeof($posts);
if ($nposts) $nposts -= 1;
$page = (int)($nposts/$num_to_show);
$default_start = $page*$num_to_show;
} else {