X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/dee12e5810156419e529dc20c5515f8a82b1acea..ba224fe1e6f6212651818538d7770690d821bfe0:/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); } } ?>