X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/dee12e5810156419e529dc20c5515f8a82b1acea..b945f7d01f6d44c97bbc7ff066833aa015b07b8b:/lib/MECON/DB/Pager.php?ds=sidebyside diff --git a/lib/MECON/DB/Pager.php b/lib/MECON/DB/Pager.php index 7daf5d0..b492bc3 100644 --- a/lib/MECON/DB/Pager.php +++ b/lib/MECON/DB/Pager.php @@ -63,6 +63,10 @@ require_once 'DB.php'; class MECON_DB_Pager extends DB_Result { + var $currentpage = 0; + var $current = 0; + var $to = 0; + /** * Constructor * @@ -209,7 +213,7 @@ class MECON_DB_Pager extends DB_Result if ($this->current >= $this->to) { return null; } - return $this->fetchRow($mode, $this->current); + return parent::fetchRow($mode, $this->current); } function fetchInto(&$arr, $mode=DB_FETCHMODE_DEFAULT) @@ -218,7 +222,7 @@ class MECON_DB_Pager extends DB_Result if ($this->current >= $this->to) { return null; } - return $this->fetchInto($arr, $mode, $this->current); + return parent::fetchInto($arr, $mode, $this->current); } } ?>