diff --git a/pear/PEAR.php b/pear/PEAR.php index c3033746346..0c6b0f537af 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']; }