diff --git a/checkin_notes b/checkin_notes index a957b09a00..c00a0e3141 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/html/inc/forum.inc b/html/inc/forum.inc index b8f957ae99..0b97bf79f3 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -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 {