]> granicus.if.org Git - php/commitdiff
All DB modules should return NULL from fetchRow() now if there are no more
authorChuck Hagenbuch <chagenbu@php.net>
Fri, 16 Feb 2001 17:14:39 +0000 (17:14 +0000)
committerChuck Hagenbuch <chagenbu@php.net>
Fri, 16 Feb 2001 17:14:39 +0000 (17:14 +0000)
results, and a DB_Error object only on an error.

DB::isError() return false when passed null now.

pear/DB.php

index 30f9efd6386e72936e08f7f093bd318a36c0f2a9..8cf40dd9c319bfcec2d12953c960ee32dbf9fdc7 100644 (file)
@@ -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')));
     }
 
     /**