summaryrefslogtreecommitdiff
path: root/pear/PEAR.php
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2002-03-05 14:43:02 +0000
committerStig Bakken <ssb@php.net>2002-03-05 14:43:02 +0000
commit22aac3652ed1fbb84bebac9a821484702d7f064d (patch)
tree403aef7b2abaa88bf3f25294f9279f4f75d01ec1 /pear/PEAR.php
parenteeeb95595f1fbc82db1d934673412ff446b48012 (diff)
downloadphp-git-22aac3652ed1fbb84bebac9a821484702d7f064d.tar.gz
* fix PEAR::setErrorHandling() settings so they apply when using raiseError()
Diffstat (limited to 'pear/PEAR.php')
-rw-r--r--pear/PEAR.php6
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'];
}