diff options
author | Chuck Hagenbuch <chagenbu@php.net> | 2001-02-16 17:14:39 +0000 |
---|---|---|
committer | Chuck Hagenbuch <chagenbu@php.net> | 2001-02-16 17:14:39 +0000 |
commit | 0b11c910f53110e3fd3d97ebda81aa3292ed46fc (patch) | |
tree | 1ae3ce1fad4a393ffec04b86ab7182d21ee1d439 | |
parent | f49d4de5991499e6b427aef23e9a082b85e5b404 (diff) | |
download | php-git-0b11c910f53110e3fd3d97ebda81aa3292ed46fc.tar.gz |
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.
-rw-r--r-- | pear/DB.php | 5 |
1 files changed, 2 insertions, 3 deletions
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'))); } /** |