From fa6f3a3617bb20f59b80706efe1ec61c1d89905e Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Thu, 19 Apr 2001 21:54:37 +0000 Subject: [PATCH] * fixed DB_common::getXxx when using the parameter array (didn't work before) --- pear/DB.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pear/DB.php b/pear/DB.php index b5054971ba..135349a52a 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -600,7 +600,7 @@ class DB_result */ function fetchRow($fetchmode = DB_FETCHMODE_DEFAULT, $rownum=null) { - $res = $this->fetchInto ($arr, $fetchmode, $rownum); + $res = $this->fetchInto($arr, $fetchmode, $rownum); if ($res !== DB_OK) { return $res; } @@ -618,7 +618,7 @@ class DB_result */ function fetchInto(&$arr, $fetchmode = DB_FETCHMODE_DEFAULT, $rownum=null) { - if ($fetchmode == DB_FETCHMODE_DEFAULT) { + if ($fetchmode === DB_FETCHMODE_DEFAULT) { $fetchmode = $this->dbh->fetchmode; } return $this->dbh->fetchInto($this->result, $arr, $fetchmode, $rownum); -- 2.50.1