]> granicus.if.org Git - php/commitdiff
fix problem when mixing different error modes under certain circumstances
authorTomas V.V.Cox <cox@php.net>
Fri, 31 Aug 2001 17:56:44 +0000 (17:56 +0000)
committerTomas V.V.Cox <cox@php.net>
Fri, 31 Aug 2001 17:56:44 +0000 (17:56 +0000)
(pear/test/pear_error3.phpt)

pear/PEAR.php

index 8ca8b81a7240bcafe7c442189ec2c862168ebcc2..c30337463461fdec132bf53e09d86f33e946d4a5 100644 (file)
@@ -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'];
                 }