From: Tomas V.V.Cox Date: Fri, 31 Aug 2001 19:13:24 +0000 (+0000) Subject: fix for DB/tests/db_error2.phpt X-Git-Tag: PRE_SUBST_Z_MACROS~283 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2567b428b2fe37ee6edfd79b99c54383d96376de;p=php fix for DB/tests/db_error2.phpt --- diff --git a/pear/PEAR.php b/pear/PEAR.php index c303374634..0c6b0f537a 100644 --- a/pear/PEAR.php +++ b/pear/PEAR.php @@ -377,8 +377,10 @@ class PEAR } if ($mode == PEAR_ERROR_TRIGGER && $options === null) { - if (isset($this) && isset($this->_default_error_options)) { - $options = $this->_default_error_options; + if (isset($this)) { + if (isset($this->_default_error_options)) { + $options = $this->_default_error_options; + } } else { $options = $GLOBALS['_PEAR_default_error_options']; }