diff --git a/classes/page/PageHandler.class.php b/classes/page/PageHandler.class.php index 56656585d..f4c4ec980 100644 --- a/classes/page/PageHandler.class.php +++ b/classes/page/PageHandler.class.php @@ -36,6 +36,8 @@ $this->first_page = $first_page; $this->last_page = $last_page; + + if($total_page < $this->page_count) $this->page_count = $total_page; } /**