From bf0ab08fb828cfc74746767c6a9eaf3d4e83ea51 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Fri, 31 Aug 2001 17:56:44 +0000 Subject: fix problem when mixing different error modes under certain circumstances (pear/test/pear_error3.phpt) --- pear/PEAR.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pear/PEAR.php b/pear/PEAR.php index 8ca8b81a72..c303374634 100644 --- a/pear/PEAR.php +++ b/pear/PEAR.php @@ -397,8 +397,10 @@ class PEAR } } else { if ($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']; } -- cgit v1.2.1