Index: common.php =================================================================== RCS file: /repository/pear/MDB/common.php,v retrieving revision 1.16 diff -u -r1.16 common.php --- common.php 12 Jun 2002 13:17:04 -0000 1.16 +++ common.php 17 Jun 2002 14:55:42 -0000 @@ -2184,7 +2184,7 @@ */ function fetchField($result, &$value, $fetchmode = DB_FETCHMODE_DEFAULT) { - if (!$result) { + if (MDB::isError($result)) { return $this->raiseError(DB_ERROR_NEED_MORE_DATA, "", "", 'Fetch field: it was not specified a valid result set'); } @@ -2223,7 +2223,7 @@ */ function fetchRow($result, &$row, $fetchmode = DB_FETCHMODE_DEFAULT, $rownum = NULL) { - if (!$result) { + if (MDB::isError($result)) { return $this->raiseError(DB_ERROR_NEED_MORE_DATA, "", "", 'Fetch row: it was not specified a valid result set'); } @@ -2257,7 +2257,7 @@ */ function fetchCol($result, &$column, $fetchmode = DB_FETCHMODE_DEFAULT, $colnum = '0') { - if (!$result) { + if (MDB::isError($result)) { return $this->raiseError(DB_ERROR_NEED_MORE_DATA, "", "", 'Fetch column: it was not specified a valid result set'); } @@ -2301,7 +2301,7 @@ */ function fetchAll($result, &$all, $fetchmode = DB_FETCHMODE_DEFAULT, $rekey = FALSE, $force_array = FALSE, $group = FALSE) { - if (!$result) { + if (MDB::isError($result)) { return $this->raiseError(DB_ERROR_NEED_MORE_DATA, "", "", 'Fetch All: it was not specified a valid result set'); }