diff options
author | Tomas V.V.Cox <cox@php.net> | 2001-08-31 19:13:24 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2001-08-31 19:13:24 +0000 |
commit | 2567b428b2fe37ee6edfd79b99c54383d96376de (patch) | |
tree | 917ff6d8467bd67a6da9f12a3b2ae1b7edc2e1c4 /pear/PEAR.php | |
parent | bf0ab08fb828cfc74746767c6a9eaf3d4e83ea51 (diff) | |
download | php-git-2567b428b2fe37ee6edfd79b99c54383d96376de.tar.gz |
fix for DB/tests/db_error2.phpt
Diffstat (limited to 'pear/PEAR.php')
-rw-r--r-- | pear/PEAR.php | 6 |
1 files 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']; } |