]> granicus.if.org Git - php/commitdiff
* fixed DB_common::getXxx when using the parameter array (didn't work before)
authorStig Bakken <ssb@php.net>
Thu, 19 Apr 2001 21:54:37 +0000 (21:54 +0000)
committerStig Bakken <ssb@php.net>
Thu, 19 Apr 2001 21:54:37 +0000 (21:54 +0000)
pear/DB.php

index b5054971ba324898668ca320647b48e48cf988c6..135349a52af54da8fa44caa3c5e3ce8a0ba8fa77 100644 (file)
@@ -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);