diff options
author | Stig Bakken <ssb@php.net> | 2002-03-05 14:43:02 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 2002-03-05 14:43:02 +0000 |
commit | 22aac3652ed1fbb84bebac9a821484702d7f064d (patch) | |
tree | 403aef7b2abaa88bf3f25294f9279f4f75d01ec1 /pear | |
parent | eeeb95595f1fbc82db1d934673412ff446b48012 (diff) | |
download | php-git-22aac3652ed1fbb84bebac9a821484702d7f064d.tar.gz |
* fix PEAR::setErrorHandling() settings so they apply when using raiseError()
Diffstat (limited to 'pear')
-rw-r--r-- | pear/PEAR.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pear/PEAR.php b/pear/PEAR.php index 4d013d76c2..db7f21bfa7 100644 --- a/pear/PEAR.php +++ b/pear/PEAR.php @@ -403,10 +403,8 @@ class PEAR } } else { if ($options === null) { - if (isset($this)) { - if (isset($this->_default_error_options)) { - $options = $this->_default_error_options; - } + if (isset($this) && isset($this->_default_error_options)) { + $options = $this->_default_error_options; } else { $options = $GLOBALS['_PEAR_default_error_options']; } |