diff --git a/pear/DB.php b/pear/DB.php index a6ef7e1ff33..997e7eeea38 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -604,7 +604,7 @@ class DB_result $fetchmode = $this->dbh->fetchmode; } - $res = $this->dbh->fetchInto($arr, $fetchmode, $rownum); + $res = $this->dbh->fetchInto($this->result, $arr, $fetchmode, $rownum); if ($res !== DB_OK) { return $res; }