*
* @return array a row of data, or false on error
*/
- function fetchRow($fetchmode = DB_FETCHMODE_DEFAULT, $rownum=0)
+ function fetchRow($fetchmode = DB_FETCHMODE_DEFAULT, $rownum=null)
{
$res = $this->fetchInto ($arr, $fetchmode, $rownum);
if ($res !== DB_OK) {
*
* @return int error code
*/
- function fetchInto(&$arr, $fetchmode = DB_FETCHMODE_DEFAULT, $rownum=0)
+ function fetchInto(&$arr, $fetchmode = DB_FETCHMODE_DEFAULT, $rownum=null)
{
if ($fetchmode == DB_FETCHMODE_DEFAULT) {
$fetchmode = $this->dbh->fetchmode;
}
- return $this->dbh->fetchInto($this->result, $arr, $fetchmode, $rownum=0);
+ return $this->dbh->fetchInto($this->result, $arr, $fetchmode, $rownum);
}
/**