]> git.llucax.com Git - mecon/meconlib.git/commitdiff
Se corrige un bug.
authorManuel Nazar Anchorena <manazar@mecon.gov.ar>
Tue, 14 Oct 2003 16:49:45 +0000 (16:49 +0000)
committerManuel Nazar Anchorena <manazar@mecon.gov.ar>
Tue, 14 Oct 2003 16:49:45 +0000 (16:49 +0000)
lib/MECON/DB/Pager.php

index bb030e7ec8d13256e7bd1149fc3067b0bd56e1b3..7daf5d031ca35bbc2253366a71d063d30f3cfb3e 100644 (file)
@@ -100,10 +100,10 @@ class MECON_DB_Pager extends DB_Result
     */
     function MECON_DB_Pager (&$res, $from = 0, $limit = 10, $maxpages = 21, $numrows = null)
     {
-        $this->res->dbh = $res->dbh;
-        $this->res->result = $res->result;
-        $this->res->row_counter = $res->row_counter;
-        $this->res->limit_from = $res->limit_from;
+        $this->dbh = $res->dbh;
+        $this->result = $res->result;
+        $this->row_counter = $res->row_counter;
+        $this->limit_from = $res->limit_from;
         $this->from = $from;
         $this->limit = $limit;
         $this->numrows = $numrows;
@@ -119,7 +119,7 @@ class MECON_DB_Pager extends DB_Result
     {
         // if there is no numrows given, calculate it
         if ($this->numrows === null) {
-            $this->numrows = $this->res->numrows();
+            $this->numrows = $this->numrows();
             if (DB::isError($this->numrows)) {
                 return $this->numrows;
             }
@@ -209,7 +209,7 @@ class MECON_DB_Pager extends DB_Result
         if ($this->current >= $this->to) {
             return null;
         }
-        return $this->res->fetchRow($mode, $this->current);
+        return $this->fetchRow($mode, $this->current);
     }
 
     function fetchInto(&$arr, $mode=DB_FETCHMODE_DEFAULT)
@@ -218,7 +218,7 @@ class MECON_DB_Pager extends DB_Result
         if ($this->current >= $this->to) {
             return null;
         }
-        return $this->res->fetchInto($arr, $mode, $this->current);
+        return $this->fetchInto($arr, $mode, $this->current);
     }
 }
 ?>