[pLog-svn] r5711 - plog/trunk/class/data/pager
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Tue Jul 24 11:46:37 EDT 2007
Author: oscar
Date: 2007-07-24 11:46:36 -0400 (Tue, 24 Jul 2007)
New Revision: 5711
Modified:
plog/trunk/class/data/pager/pager.class.php
Log:
This should fix an issue with the pager displaying 0 pages.
Modified: plog/trunk/class/data/pager/pager.class.php
===================================================================
--- plog/trunk/class/data/pager/pager.class.php 2007-07-23 21:34:11 UTC (rev 5710)
+++ plog/trunk/class/data/pager/pager.class.php 2007-07-24 15:46:36 UTC (rev 5711)
@@ -280,7 +280,8 @@
*/
function _init()
{
- $this->_totalPages = ceil($this->_totalRegs / $this->_regsForPage);
+ $pages = ceil($this->_totalRegs / $this->_regsForPage);
+ $this->_totalPages = $pages == 0 ? 1 : $pages;
$this->_startPage = 1;
$this->_endPage = $this->_totalPages;
$this->_pageLinks = $this->generateLinks();
More information about the pLog-svn
mailing list