Index: includes/class_pagination.php =================================================================== --- includes/class_pagination.php (revision 1255) +++ includes/class_pagination.php (working copy) @@ -102,6 +102,10 @@ function split_pages() { $this->pagecount = ceil($this->total / $this->perpage); + if ($this->pagelinks == 0) + { + $this->pagelinks = $this->pagecount; + } } /**