fixed a pagination

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11942 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-10-29 06:37:05 +00:00
parent e29e731599
commit 0db281fea4

View file

@ -36,6 +36,12 @@
$first_page = $cur_page - (int)($page_count/2);
if($first_page<1) $first_page = 1;
if($total_page > $page_count && $first_page + $page_count - 1 > $total_page)
{
$first_page -= $first_page + $page_count - 1 - $total_page;
}
$last_page = $total_page;
if($last_page>$total_page) $last_page = $total_page;