From 2567b428b2fe37ee6edfd79b99c54383d96376de Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Fri, 31 Aug 2001 19:13:24 +0000 Subject: [PATCH] fix for DB/tests/db_error2.phpt --- pear/PEAR.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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']; } -- 2.50.1