summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/DB.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/pear/DB.php b/pear/DB.php
index 788aed02fc..3c706c0aac 100644
--- a/pear/DB.php
+++ b/pear/DB.php
@@ -242,9 +242,10 @@ class DB
*/
function isError($value)
{
- return is_object($value) &&
- (get_class($value) == "db_error" ||
- is_subclass_of($value, "db_error"));
+ return (is_object($value) &&
+ (get_class($value) == "db_error" ||
+ is_subclass_of($value, "db_error")) ||
+ !isset($value));
}
/**