From: Chuck Hagenbuch Date: Fri, 16 Feb 2001 17:14:39 +0000 (+0000) Subject: All DB modules should return NULL from fetchRow() now if there are no more X-Git-Tag: php-4.0.5RC1~268 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b11c910f53110e3fd3d97ebda81aa3292ed46fc;p=php All DB modules should return NULL from fetchRow() now if there are no more results, and a DB_Error object only on an error. DB::isError() return false when passed null now. --- diff --git a/pear/DB.php b/pear/DB.php index 30f9efd638..8cf40dd9c3 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -256,9 +256,8 @@ class DB function isError($value) { return (is_object($value) && - (get_class($value) == "db_error" || - is_subclass_of($value, "db_error")) || - !isset($value)); + (get_class($value) == 'db_error' || + is_subclass_of($value, 'db_error'))); } /**