mirror of https://github.com/BOINC/boinc.git
- user web: fix bug when showing last page of thread
This commit is contained in:
parent
3f8357fc92
commit
109661f912
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue